shutdown method

Future<int> shutdown()

Stop the service gracefully (using the shutdown command)

Implementation

Future<int> shutdown() async {
  _sendCommand('quit');
  var timer = Timer(const Duration(seconds: 1), _feServer.kill);
  var exitCode = await _feServer.exitCode;
  timer.cancel();
  await _feServerStdoutLines.cancel();
  return exitCode;
}