stopRecord method
Implementation
stopRecord(BuildContext context) async {
if (cameraInitialized.value) {
//Helper.showLoading();
XFile? file = await stopVideoRecording(context);
debugPrint("file : ${file?.path}");
//Helper.hideLoading();
// Get.back(result: file);
if (context.mounted) Navigator.pop(context, file);
isRecording(false);
}
}