get method
Implementation
@override
Future<Response> get(
Uri uri, {
Map<String, String>? headers,
Duration? timeout,
}) {
return oauthClient
.get(uri, headers: headers)
.timeout(timeout ?? defaultTimeout)
.then((response) {
if (response.statusCode >= 200 && response.statusCode < 300) {
return response;
} else {
return Future.error(response);
}
});
}