PostClient typedef

PostClient = Future<Response> Function(Uri url, {Object? body, Encoding? encoding, Map<String, String>? headers})

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

Implementation

typedef PostClient = Future<http.Response> Function(
  Uri url, {
  Map<String, String>? headers,
  Object? body,
  Encoding? encoding,
});