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.

28 lignes
604 B

  1. import 'package:webfeed/util/helpers.dart';
  2. import 'package:xml/xml.dart';
  3. class AtomSource {
  4. String id;
  5. String title;
  6. String updated;
  7. AtomSource(this.id, this.title, this.updated);
  8. factory AtomSource.parse(XmlElement element) {
  9. var id = xmlGetString(element, "id", strict: false);
  10. var title = xmlGetString(element, "title", strict: false);
  11. var updated = xmlGetString(element, "updated", strict: false);
  12. return new AtomSource(id, title, updated);
  13. }
  14. @override
  15. String toString() {
  16. return '''
  17. id: $id
  18. title: $title
  19. updated: $updated
  20. ''';
  21. }
  22. }