fixing issues with sync between controls

This commit is contained in:
Marty Fuhry
2024-03-05 14:21:26 -05:00
parent 3ed05a9b3e
commit 8784426c9e
5 changed files with 27 additions and 7 deletions
@@ -35,6 +35,14 @@ class VideoPlayerControls extends StateNotifier<VideoPlaybackControls> {
state = value;
}
void reset() {
state = VideoPlaybackControls(
position: 0,
pause: false,
mute: false,
);
}
double get position => state.position;
bool get mute => state.mute;