stop method

  1. @override
Future<void> stop({
  1. int timeoutSeconds = 5,
})
override

Stops the currently running local proxy, if any.

Waits up to timeoutSeconds for in-flight connections to close gracefully before forcefully closing them.

Implementation

@override
Future<void> stop({int timeoutSeconds = 5}) async {
  try {
    await methodChannel.invokeMethod<void>('stop', {
      'timeoutSeconds': timeoutSeconds,
    });
  } on PlatformException catch (e) {
    throw _mapException(e);
  }
}