updatePlaybackState method
Updates the playback notification with the current state
Implementation
Future<bool> updatePlaybackState(PlaybackState state) async {
// If platform implementation is not available, return false
if (!_platformImplementationAvailable) {
return false;
}
return showPlaybackNotification(
title: state.title,
artist: state.artist,
album: state.album,
artUri: state.artUri,
isPlaying: state.playing,
position: state.position,
duration: state.duration,
);
}