delete<T> method
Make a DELETE request
Implementation
Future<T?> delete<T>(String url, Object? data, Options? options,
CancelToken? cancelToken) async {
if (T.toString() == 'dynamic') {
return await network(
request: (request) => request.deleteUri(Uri.parse(url),
data: data, options: options, cancelToken: cancelToken),
);
}
return await network<T>(
request: (request) => request.deleteUri(Uri.parse(url),
data: data, options: options, cancelToken: cancelToken),
);
}