get static method

Future<Response> get({
  1. required String url,
  2. required String apiKey,
})

Implementation

static Future<http.Response> get(
    {required String url, required String apiKey}) async {
  return http
      .get(Uri.parse(url), headers: {'Authorization': 'Bearer $apiKey'});
}