stop method

Future<void> stop()

Stop a record.

Return a Future to an URL of the recorded sound.

Example:

        String anURL = await myRecorder.stopRecorder();
        if (_recorderSubscription != null)
        {
                _recorderSubscription.cancel();
                _recorderSubscription = null;
        }
}

Implementation

Future<void> stop() async {
  _logger.d('FS:---> stopRecorder ');
  await _lock.synchronized(() async {
    await _stopRecorder();
  });
  _logger.d('FS:<--- stopRecorder ');
}