stop method

Future<void> stop()

Implementation

Future<void> stop() async {
  if (_audioCaptureEventChannelSubscription == null) return;
  final tempListener = _audioCaptureEventChannelSubscription;
  _audioCaptureEventChannelSubscription = null;
  await tempListener!.cancel();
}