The Webfeed Flutter package for Appeto SDK.
Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.

21 righe
535 B

  1. import 'package:xml/xml.dart';
  2. class ItunesCategory {
  3. final String category;
  4. final List<String> subCategories;
  5. ItunesCategory({this.category, this.subCategories});
  6. factory ItunesCategory.parse(XmlElement element) {
  7. if (element == null) return null;
  8. return ItunesCategory(
  9. category: element.getAttribute('text')?.trim(),
  10. subCategories: element
  11. .findElements('itunes:category')
  12. ?.map((e) => e.getAttribute('text')?.trim())
  13. ?.toList() ??
  14. [],
  15. );
  16. }
  17. }