stop method

Future<int> stop()

Stops the server and returns the number of routes captured.

Implementation

Future<int> stop() async {
  await _server?.close(force: true);
  return _routeStore.length;
}