stopRecording method

Future<void> stopRecording()

Ends an active recording without closing the preview.

Implementation

Future<void> stopRecording() => useController((controller) async {
  if (controller.value.isRecordingVideo) {
    await controller.stopVideoRecording();
  }
});