close method Null safety

  1. @override
void close()
override

Closes the HttpClient.

Implementation

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