The Webfeed Flutter package for Appeto SDK.
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

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