1. override
void close()

Closes the client. This terminates all active connections. If a client remains unclosed, the Dart process may not terminate.

Source

@override
void close() {
  if (_inner != null) _inner.close(force: true);
  _inner = null;
}