The Webfeed Flutter package for Appeto SDK.
25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.

25 satır
495 B

  1. import 'package:xml/xml.dart';
  2. class Price {
  3. final double price;
  4. final String type;
  5. final String info;
  6. final String currency;
  7. Price({
  8. this.price,
  9. this.type,
  10. this.info,
  11. this.currency,
  12. });
  13. factory Price.parse(XmlElement element) {
  14. return Price(
  15. price: double.tryParse(element.getAttribute('price') ?? '0'),
  16. type: element.getAttribute('type'),
  17. info: element.getAttribute('info'),
  18. currency: element.getAttribute('currency'),
  19. );
  20. }
  21. }