onIsPlayingChanged method
Implementation
@override
void onIsPlayingChanged(bool isPlaying) {
value = value.copyWith(
isPlaying: isPlaying,
error: isPlaying ? null : value.error,
);
isPlaying ? startUpdatePositionTimer() : stopUpdatePositionTimer();
}