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.

20 rivejä
473 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. static parse(XmlElement? element) {
  9. if (element == null) return null;
  10. return RssImage(
  11. title: findFirstElement(element, 'title')?.text,
  12. url: findFirstElement(element, 'url')?.text,
  13. link: findFirstElement(element, 'link')?.text,
  14. );
  15. }
  16. }