The Webfeed Flutter package for Appeto SDK.
Não pode escolher mais do que 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

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