delete method
Implementation
@override
Future<ParseNetworkResponse> delete(String path,
{ParseNetworkOptions? options}) async {
try {
final dio.Response<String> dioResponse = await _client.delete<String>(
path,
options: _Options(headers: options?.headers),
);
return ParseNetworkResponse(
data: dioResponse.data!,
statusCode: dioResponse.statusCode!,
);
} on dio.DioException catch (error) {
return ParseNetworkResponse(
data: error.response?.data ?? _fallbackErrorData,
statusCode: error.response?.statusCode ?? ParseError.otherCause,
);
}
}