post method

Future<Response?> post(
  1. String route, {
  2. Map<String, String>? headers,
  3. String? body,
  4. Encoding? encoding,
  5. Duration? timeout,
})

make an actual API request to a route, and always append the API_KEY as authorization-header

Implementation

Future<http.Response?> post(
  String route, {
  Map<String, String>? headers,
  String? body,
  Encoding? encoding,
  Duration? timeout,
}) =>
    send(
      makepost(route, headers: headers, body: body, encoding: encoding),
      timeout: timeout,
    );