opt: use cascade (#812)

This commit is contained in:
My-Responsitories
2025-05-04 23:08:06 +08:00
committed by GitHub
parent 877732e1e7
commit 6f69a45195
25 changed files with 52 additions and 88 deletions

View File

@@ -209,7 +209,9 @@ class VideoPlayerServiceHandler extends BaseAudioHandler with SeekHandler {
void onPositionChange(Duration position) {
if (!enableBackgroundPlay ||
_item.isEmpty ||
PlPlayerController.instanceExists().not) return;
PlPlayerController.instanceExists().not) {
return;
}
playbackState.add(playbackState.value.copyWith(
updatePosition: position,