getEndpoint method

Future<Response> getEndpoint(
  1. HolodexEndpoint endpoint, {
  2. Map<String, String>? headers,
  3. Map<String, dynamic>? params,
})

Utility method to make a custom http get call with the Api Key added to the headers

Implementation

Future<Response> getEndpoint(
  HolodexEndpoint endpoint, {
  Map<String, String>? headers,
  Map<String, dynamic>? params,
}) async {
  return get(path: endpoint.path, headers: headers, params: params);
}