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.

22 lignes
367 B

  1. import 'package:xml/xml.dart';
  2. class Status {
  3. final String state;
  4. final String reason;
  5. Status({
  6. this.state,
  7. this.reason,
  8. });
  9. factory Status.parse(XmlElement element) {
  10. if (element == null) {
  11. return null;
  12. }
  13. return new Status(
  14. state: element.getAttribute("state"),
  15. reason: element.getAttribute("reason"),
  16. );
  17. }
  18. }