patch method

Future<Response> patch({
  1. required String url,
  2. Map<String, String> headers = const {},
  3. dynamic body,

Sends an HTTP PATCH request with the given headers and body to the given URL. The url should be a String. The headers should be a Map<String, String>. The body can be a List or a Map.

This method executes and return a http.Response instance.


Future<http.Response> patch({
    required String url,
    Map<String, String> headers = const {},
    body}) async {

  return _request(_HttpMethod.patch, url, headers, body);