get method

Future<Response> get(
  1. String url, {
  2. Map<String, String>? headers,
  3. Client? httpClient,
})

Performs a GET request to the specified url, adding the authorization token.

If no token already exists, or if it is expired, a new one is requested.

Implementation

Future<http.Response> get(String url,
    {Map<String, String>? headers, http.Client? httpClient}) async {
  return _request('GET', url, headers: headers, httpClient: httpClient);
}