The Webfeed Flutter package for Appeto SDK.
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

28 lignes
594 B

  1. import 'package:webfeedclient/util/helpers.dart';
  2. import 'package:xml/xml.dart';
  3. class Image {
  4. final String title;
  5. final String url;
  6. final String link;
  7. Image(this.title, this.url, this.link);
  8. factory Image.parse(XmlElement element) {
  9. var title = xmlGetString(element, "title", strict: false);
  10. var url = xmlGetString(element, "url", strict: false);
  11. var link = xmlGetString(element, "link", strict: false);
  12. return new Image(title, url, link);
  13. }
  14. @override
  15. String toString() {
  16. return '''
  17. title: $title
  18. url: $url
  19. link: $link
  20. ''';
  21. }
  22. }