state property
MediaState
get
state
Implementation
MediaState get state {
if (media != null) {
if (media!.paused) {
return MediaState.paused;
} else if (media!.ended) {
return MediaState.ended;
} else {
return MediaState.playing;
}
}
return MediaState.paused;
}