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.

16 lines
293 B

  1. import 'package:xml/xml.dart';
  2. class RssSource {
  3. final String? url;
  4. final String? value;
  5. RssSource(this.url, this.value);
  6. factory RssSource.parse(XmlElement element) {
  7. var url = element.getAttribute('url');
  8. var value = element.text;
  9. return RssSource(url, value);
  10. }
  11. }