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