apiDelete method

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

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

Implementation

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