close method

  1. @override
Future<void> close()
override

Closes the server.

Implementation

@override
Future<void> close() async {
  if (this._server == null) {
    return;
  }
  await this._server!.close(force: true);
  print('Server running on http://localhost:$_port closed');
  this._started = false;
  this._server = null;
}