stop method

Future<void> stop()

Stop recording and wait for the final chunk to be delivered.

Implementation

Future<void> stop() async {
  final rec = _recorder;
  if (rec == null) return;
  _recorder = null;
  rec.stop();
  await _completer.future;
}