close method

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

Closes the client and cleans up any associated resources.

Terminates all active connections.

Implementation

@override
Future<void> close() async {
  if (_client case var client?) {
    client.close();
    _client = null;
  }
}