AudioPlayerProvider class
- Mixed-in types
Constructors
- AudioPlayerProvider({bool extractAlbumCoverDominantColor = true})
Properties
- albumCoverImageMinimized → Widget
-
no setter
- audioPlayer ↔ AudioPlayer?
-
getter/setter pair
- audioTrack → AudioTrack
-
no setter
- currentAlbumCover ↔ Uint8List?
-
getter/setter pair
- currentPosition ↔ Duration
-
getter/setter pair
- dominantColor ↔ Color
-
getter/setter pair
- duration ↔ Duration
-
getter/setter pair
- extractAlbumCoverDominantColor ↔ bool
-
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasListeners → bool
-
Whether any listeners are currently registered.
no setterinherited
- index → int?
-
no setter
- isPlaying ↔ bool
-
getter/setter pair
- max → double
-
no setter
- nextAlbumCover ↔ Uint8List?
-
getter/setter pair
- playerState ↔ PlayerState?
-
getter/setter pair
-
playlist
↔ List<
AudioTrack> -
getter/setter pair
- playlistName ↔ String?
-
getter/setter pair
- positionTime → String
-
no setter
- previousAlbumCover ↔ Uint8List?
-
getter/setter pair
- progressBarValue → double
-
no setter
- queueLength → int
-
no setter
- repeat ↔ bool
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- showRemaining ↔ bool
-
getter/setter pair
- shuffle ↔ bool
-
getter/setter pair
- source ↔ Source?
-
getter/setter pair
-
sourcePlaylist
↔ List<
AudioTrack> -
getter/setter pair
- timeRemainingOrDuration → String
-
no setter
Methods
-
addListener(
VoidCallback listener) → void -
Register a closure to be called when the object changes.
inherited
-
dispose(
) → void -
Discards any resources used by the object. After this is called, the
object is not in a usable state and should be discarded (calls to
addListener will throw after the object is disposed).
inherited
-
extractAlbumCover(
AudioTrack audioTrack) → Future< Uint8List> -
extractDominantColor(
) → void -
formatTime(
int seconds) → String -
listenOnDurationChanged(
) → void -
listenOnPlayerComplete(
) → void -
listenOnPlayerStateChanged(
) → void -
listenOnPositionChanged(
) → void -
listenToAllEvents(
) → void -
next(
) → void -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
notifyListeners(
) → void -
Call all the registered listeners.
inherited
-
play(
) → void -
playSong(
) → void -
previous(
) → void -
removeListener(
VoidCallback listener) → void -
Remove a previously registered closure from the list of closures that are
notified when the object changes.
inherited
-
reorderQueue(
int oldQueueIndex, int newQueueIndex) → void -
seek(
double position) → void -
setAlbumCoverPlaceHolder(
Uint8List albumCoverPlaceHolder) → void -
setAudioSource(
List< AudioTrack> playlist, int index) → void -
setCurrentPosition(
double currentPosition) → void -
setExtractAlbumCoverDominantColor(
bool value) → void -
setSingleAudioSource(
AudioTrack audio) → void -
stopAndReleaseAudioPlayer(
) → void -
togglePlay(
) → void -
toggleRepeat(
) → void -
toggleShowRemaining(
) → void -
toggleShuffle(
) → void -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited