The Webfeed Flutter package for Appeto SDK.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 rivejä
493 B

  1. import 'package:webfeed/util/xml.dart';
  2. import 'package:xml/xml.dart';
  3. class RssImage {
  4. final String title;
  5. final String url;
  6. final String link;
  7. RssImage({this.title, this.url, this.link});
  8. factory RssImage.parse(XmlElement element) {
  9. if (element == null) {
  10. return null;
  11. }
  12. return RssImage(
  13. title: findFirstElement(element, 'title')?.text,
  14. url: findFirstElement(element, 'url')?.text,
  15. link: findFirstElement(element, 'link')?.text,
  16. );
  17. }
  18. }