Audio class

Constructors

Audio({required String id, required AudioSource audioSource, required String title, String? album, String? artist, String? genre, Duration? duration, Uri? image, bool? playable = true, String? displayTitle, String? displaySubtitle, String? displayDescription, Map<String, dynamic>? extras})

Properties

album String?
The album this media item belongs to.
final
artist String?
The artist of this media item.
final
audioSource AudioSource
The details of the audio file that as a AudioSource based class witch gives you the options of :
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>?
The rating of the media item. 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
image Uri?
The image for this media item as a uri.
final
playable bool?
Whether this is playable (i.e. not a folder).
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
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited