delete static method
dynamic
delete(})
Implementation
static delete(String url, BuildContext? context,
{Map<String, dynamic>? params,
String? alertTitle,
bool auth = true,
Map<String, String>? headers,
Function? onStart,
Function? onSuccess,
Function? onFinish,
Function? onError,
bool silent = false,
bool mock = false}) {
if (params == null) {
params = Map.fromEntries({});
}
String method = 'DELETE';
if (mock) {
params['_method'] = method;
method = 'POST';
}
return _requestCall(method, url, context,
params: params,
alertTitle: alertTitle,
auth: auth,
headers: headers,
onStart: onStart,
onSuccess: onSuccess,
onFinish: onFinish,
onError: onError,
silent: silent);
}