stop static method

Future<void> stop()

Ends one start.

Implementation

static Future<void> stop() async {
  if (!_isIOS || _clients == 0) return;
  _clients--;
  if (_clients != 0) return;
  try {
    await _channel.invokeMethod<void>('stop');
  } on MissingPluginException {
    // Nothing to stop.
  } on PlatformException {
    // Nothing to stop.
  }
}