close method

Future? close(
  1. {bool force = false}
)

Permanently stops the Dartness server from listening for new connections. This closes the Stream of HttpRequests with a done event.

If force is true, active connections will be closed immediately.

Implementation

Future? close({bool force = false}) {
  return _server.stop(force: force);
}