MediaItem class
Constructors
-
MediaItem({required String title, String subtitle = "", required String shazamId, required String appleMusicId, required String appleMusicUrl, String artworkUrl = "", required String artist, double matchOffset = 0, String videoUrl = "", String webUrl = "", List<
String> genres = const [], String isrc = ""}) -
MediaItem.fromJson(Map<
String, dynamic> json) -
factory
Properties
- appleMusicId → String
-
final
- appleMusicUrl → String
-
final
- artist → String
-
final
- artworkUrl → String
-
final
-
genres
→ List<
String> -
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isrc → String
-
final
- matchOffset → double
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- shazamId → String
-
final
- subtitle → String
-
final
- title → String
-
final
- videoUrl → String
-
final
- webUrl → String
-
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited