MediaItemMessage class
Constructors
-
MediaItemMessage({required String id, required String title, String? album, String? artist, String? genre, Duration? duration, Uri? artUri, bool? playable = true, String? displayTitle, String? displaySubtitle, String? displayDescription, RatingMessage? rating, Map<
String, dynamic> ? extras}) -
Creates a MediaItemMessage.
const
-
MediaItemMessage.fromMap(Map<
String, dynamic> raw) -
Creates a MediaItemMessage from a map of key/value pairs corresponding to
fields of this class.
factory
Properties
- album → String?
-
The album this media item belongs to.
final
- artist → String?
-
The artist of this media item.
final
- artUri → Uri?
-
The artwork for this media item as a uri.
final
- displayDescription → String?
-
Override the default description for display purposes.
final
- displaySubtitle → String?
-
Override the default subtitle for display purposes.
final
- displayTitle → String?
-
Override the default title for display purposes.
final
- duration → Duration?
-
The duration of this media item.
final
-
extras
→ Map<
String, dynamic> ? -
A map of additional metadata for the media item.
final
- genre → String?
-
The genre of this media item.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
A unique id.
final
- playable → bool?
-
Whether this is playable (i.e. not a folder).
final
- rating → RatingMessage?
-
The rating of the MediaItemMessage.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- title → String
-
The title of this media item.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> - Converts this MediaItemMessage to a map of key/value pairs corresponding to the fields of this class.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited