stop method

Future<void> stop()

Stops the HTTP server and cancels file watching.

Implementation

Future<void> stop() async {
  _reloadDebounce?.cancel();
  await _watchSubscription?.cancel();
  await _server?.close(force: true);
}