The Webfeed Flutter package for Appeto SDK.
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

29 lignes
550 B

  1. import 'package:xml/xml.dart';
  2. class Text {
  3. final String? type;
  4. final String? lang;
  5. final String? start;
  6. final String? end;
  7. final String? value;
  8. Text({
  9. this.type,
  10. this.lang,
  11. this.start,
  12. this.end,
  13. this.value,
  14. });
  15. static parse(XmlElement? element) {
  16. if (element == null) return null;
  17. return Text(
  18. type: element.getAttribute('type'),
  19. lang: element.getAttribute('lang'),
  20. start: element.getAttribute('start'),
  21. end: element.getAttribute('end'),
  22. value: element.text,
  23. );
  24. }
  25. }