stop method

Future<void> stop([
  1. int exitCode = 0
])

Implementation

Future<void> stop([int exitCode = 0]) async {
  unlockInput();

  if (isCompleted) {
    return;
  }

  logger.detail('Stopping dev server...');
  _progress?.cancel();

  await _cancelWatcherSubscription();
  await _killServerProcess();
  await _cancelInputSubscription();
  await _killSubscription?.cancel();
}