dispose method
Releases resources held by this provider.
Closes an internally-created http.Client; a client passed in by the
caller is left open for the caller to manage.
Implementation
@override
void dispose() {
if (_ownsClient) _httpClient.close();
}