stop method
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();
}