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