dispose method
Close the underlying HTTP client if it was created internally. Safe to call multiple times. No-op if the client was injected.
Implementation
@override
void dispose() {
if (_ownsClient) {
_httpClient.close();
}
}
Close the underlying HTTP client if it was created internally. Safe to call multiple times. No-op if the client was injected.
@override
void dispose() {
if (_ownsClient) {
_httpClient.close();
}
}