get method

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

Performs a GET request with a new Client instance and closes it after it has been used.

Implementation

Future<Response> get(
  url, {
  Map<String, String>? headers,
  Map<String, dynamic>? params,
}) async {
  return _withClient((client) => client.get(
        url,
        headers: headers,
        params: params,
      ));
}