onStopButtonPressed method

dynamic onStopButtonPressed(
  1. T lav,
  2. void setState(
    1. 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;
    }
  });
}