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.

24 lines
387 B

  1. import 'package:xml/xml/nodes/element.dart';
  2. class RssSource {
  3. String url;
  4. String value;
  5. RssSource(this.url, this.value);
  6. factory RssSource.parse(XmlElement node) {
  7. var url = node.getAttribute("url");
  8. var value = node.text;
  9. return new RssSource(url, value);
  10. }
  11. @override
  12. String toString() {
  13. return '''
  14. url: $url
  15. value: $value
  16. ''';
  17. }
  18. }