stopRecording method
Ends an active recording without closing the preview.
Implementation
Future<void> stopRecording() => useController((controller) async {
if (controller.value.isRecordingVideo) {
await controller.stopVideoRecording();
}
});