The Webfeed Flutter package for Appeto SDK.
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

23 řádky
503 B

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