The Webfeed Flutter package for Appeto SDK.
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

22 wiersze
533 B

  1. import 'package:webfeed/util/xml.dart';
  2. import 'package:xml/xml.dart';
  3. class AtomSource {
  4. final String id;
  5. final String title;
  6. final String updated;
  7. AtomSource(this.id, this.title, this.updated);
  8. factory AtomSource.parse(XmlElement element) {
  9. if (element == null) {
  10. return null;
  11. }
  12. var id = findElementOrNull(element, 'id')?.text;
  13. var title = findElementOrNull(element, 'title')?.text;
  14. var updated = findElementOrNull(element, 'updated')?.text;
  15. return AtomSource(id, title, updated);
  16. }
  17. }