delete method

void delete(
  1. String path, {
  2. Map<String, String>? headers,
  3. bool withLoading = true,
  4. dynamic fromJson(
    1. Map<String, dynamic>
    )?,
})

DELETE request to API

Perform a DELETE request to API with specific path. You can send the headers for request.

Implementation

void delete(
  String path, {
  Map<String, String>? headers,
  bool withLoading = true,
  dynamic Function(Map<String, dynamic>)? fromJson,
}) =>
    add(RestEvent.delete(path, headers: headers, withLoading: withLoading));