kill method

  1. @override
Future<int> kill({
  1. String reason = 'none',
})

Force kill the server. Returns exit code future.

Implementation

@override
Future<int> kill({String reason = 'none'}) {
  listener?.killingServerProcess(reason);
  final process = _process!;
  _process = null;
  process.kill();
  return process.exitCode;
}