stop method

Future<void> stop()

Implementation

Future<void> stop() async {
  await _subscription?.cancel();
  _subscription = null;

  await _recorder?.stop();
  await _recorder?.dispose();
  _recorder = null;

  _frameBuffer = Uint8List(0);
}