getCurrentMediaItem method
Get the current media item for use in tracking history and generating media for card creation based on media progress.
Implementation
MediaItem? getCurrentMediaItem() {
if (_currentMediaSource == null) {
return null;
} else {
return _currentMediaItem;
}
}