Track class Null safety

The track to play by FlutterSoundPlayer.startPlayerFromTrack().

Constructors

Track({String? trackPath, Uint8List? dataBuffer, String? trackTitle, String? trackAuthor, String? albumArtUrl, String? albumArtAsset, String? albumArtFile, Codec codec = Codec.defaultCodec})
The constructor

Properties

albumArtAsset String?
The asset that points to the album art of the track
read / write
albumArtFile String?
The file that points to the album art of the track
read / write
albumArtUrl String?
The URL that points to the album art of the track
read / write
codec Codec
The image that points to the album art of the track The codec of the audio file to play. If this parameter's value is null it will be set to t_CODEC.DEFAULT.
read / write
dataBuffer Uint8List?
The buffer containing the audio file to play
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
trackAuthor String?
The name of the author of this track
read / write
trackPath String?
The path that points to the track audio file
read / write
trackTitle String?
The title of this track
read / write

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toMap() Map<String, dynamic>
Convert this object to a Map containing the properties of this object as values.
toString() String
A string representation of this object. [...]
inherited

Operators

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