stop method

dynamic stop({
  1. bool isInterrupt = false,
})

Implementation

stop({bool isInterrupt = false}) async {
  _timer?.cancel();
  _timer = null;
  if (await _audioRecorder.isRecording()) {
    await _audioRecorder.stop();
    if (isInterrupt) return;
    onFinished((_now() - _startTimestamp) ~/ 1000, _path);
  }
}