close method
Closes the client and cleans up any resources associated with it.
It's important to close each client when it's done being used; failing to do so can cause the Dart process to hang.
Once close is called, no other methods should be called. If close is called while other asynchronous methods are running, the behavior is undefined.
Optionally, force
can be set to false
to specify that the client
should wait for any pending or in-progress requests to complete before
closing, (otherwise, the client will immediately close, terminating all
connections immediately to avoid further resource consumption).
Implementation
@override
void close({bool force = true}) {}