onStopButtonPressed method
dynamic
onStopButtonPressed(
- T lav,
- void setState(
- void ()
Implementation
onStopButtonPressed(T lav, void Function(void Function()) setState) async {
setState(() {
waiterMessage = "Sto salvando la Registrazione...";
widget.onEndTakeVideo!(setState);
});
await stopVideoRecording(lav, setState).then((XFile? file) {
if (mounted) {
setState(() {});
}
if (file != null) {
videoFile = file;
}
});
}