stop method

Future<void> stop({
  1. bool force = false,
})

Implementation

Future<void> stop({bool force = false}) async {
  var completer = stopCompleter = Completer<void>();
  serverSendPort.send(force);
  await completer.future;
  isolate.kill();
  stopCompleter = null;
}