patch method

HttpResult patch([
  1. dynamic body
])

Creates an HttpResult for a PATCH request with optional body.

PATCH requests are used to partially update resources on the server.

body Optional request body (Map, FormData, or null).

Returns an HttpResult configured for PATCH method.

Example

final user = await request('/api/users/123')
  .patch({'name': 'John Updated'})
  .json<Map>((json) => json['user']);

Implementation

HttpResult patch([dynamic body]) => HttpResult(
  this
    .._withBody(body)
    .._method = "PATCH",
);