delete method

Future delete(
  1. String api, {
  2. Map<String, String>? body,
})

Implementation

Future<dynamic> delete(String api, {Map<String, String>? body}) async {
  if (!_initialized) {
    throw DRAWAuthenticationError(
        'Cannot make requests using unauthenticated client.');
  }
  final path = Uri.https(defaultOAuthApiEndpoint, api);
  final response = await auth.delete(path, body: body);
  return _objector.objectify(response);
}