delete method

Future<void> delete({
  1. Map<String, String>? queryParams,
  2. Function? onSuccess,
  3. Function? onError,
})

Implementation

Future<void> delete({Map<String, String>? queryParams, Function? onSuccess, Function? onError}) {
  return _requestWrapper(() {
    var uri = Uri.parse(baseUrl).replace(queryParameters: queryParams);
    return _client.delete(uri, headers: _headers);
  }, onSuccess: onSuccess, onError: onError);
}