close method

Future<void> close()

Stops the shelfRun

Implementation

Future<void> close() async {
  await onWillClose?.call();
  await _server?.close(force: true);
  await onClosed?.call();
}