GetClient typedef

GetClient = Future<Response> Function(Uri url, {Map<String, String>? headers})

A function type abstracted from http.get, mainly for mocking at test time.

Implementation

typedef GetClient = Future<http.Response> Function(
  Uri url, {
  Map<String, String>? headers,
});