resumeVideoRecording method

void resumeVideoRecording()

Implementation

void resumeVideoRecording() async {
  if (!initialized) {
    _uiHandler.showSnackBar('Couldn\'t find the camera!');
    return;
  }

  if (value.isRecordingPaused) {
    try {
      await controller.resumeVideoRecording();

      value = value.copyWith(isRecordingPaused: false);
    } on CameraException catch (e) {
      _uiHandler.showExceptionSnackbar(e);
      rethrow;
    }
  } else {
    _uiHandler.showSnackBar('Couldn\'t resume the video!');
    return;
  }
}