The Webfeed Flutter package for Appeto SDK.
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

23 rader
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. }