pause method

Future<void> pause({
  1. bool notify = true,
})

pause the current video

notify if is true and the events is not null we notifiy the event

Implementation

Future<void> pause({bool notify = true}) async {
  if (Platform.isLinux || Platform.isWindows) {
    _videoPlayerControllerWindows?.pause();
    playerStatus.status.value = PlayerStatus.paused;
  } else {
    await _videoPlayerController?.pause();
    playerStatus.status.value = PlayerStatus.paused;
  }
}