The Webfeed Flutter package for Appeto SDK.
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

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