delete method

Future<Response> delete(
  1. String path, {
  2. dynamic data,
  3. Map<String, dynamic>? queryParameters,
})

Implementation

Future<Response> delete(String path,
    {dynamic data, Map<String, dynamic>? queryParameters}) async {
  try {
    final response =
        await _dio.delete(path, data: data, queryParameters: queryParameters);
    return response;
  } catch (e) {
    rethrow;
  }
}