apiPost method

Future<String> apiPost(
  1. String endpoint, {
  2. Map<String, String>? headers,
})

Returns the body of the given endpoint in the specified RestAPI after a POST request. To proper use, specify apiBaseUrl.

Implementation

Future<String> apiPost(
  String endpoint, {
  Map<String, String>? headers,
}) async =>
    post(apiBaseUrl! + endpoint, headers: headers);