media_metadata.dart 672 B

123456789101112131415161718192021222324252627282930313233
  1. @JS()
  2. library media_metadata;
  3. import 'package:js/js.dart';
  4. @JS('MediaMetadata')
  5. class MediaMetadata {
  6. external MediaMetadata(MetadataLiteral md);
  7. }
  8. @JS()
  9. @anonymous
  10. class MetadataLiteral {
  11. external String get title;
  12. external String get album;
  13. external String get artist;
  14. external List<MetadataArtwork> get artwork;
  15. external factory MetadataLiteral(
  16. {String title,
  17. String album,
  18. String artist,
  19. List<MetadataArtwork> artwork});
  20. }
  21. @JS()
  22. @anonymous
  23. class MetadataArtwork {
  24. external String get src;
  25. external String get sizes;
  26. external String get type;
  27. external factory MetadataArtwork({String src, String sizes, String type});
  28. }