delete method
Implementation
@override
Future<Response?> delete(url, {body, headers, query}) async {
try {
return await _dio?.delete(
url,
data: body,
queryParameters: query,
options: Options(headers: headers),
);
} on SocketException catch (e) {
throw SocketException(e.toString());
} on FormatException catch (_) {
throw const FormatException();
} catch (e) {
NetworkExceptions.getDioException(e);
}
return null;
}