patch method
void
patch(})
PATCH request to API
Perform a PATCH request to API with specific
path
and a body
. You can send the headers
, contentType
and a fromJson
method to parse the result json to
a specific object.
Implementation
void patch(
String path, {
Map<String, String>? headers,
Map<String, dynamic>? body,
String? contentType,
bool withLoading = true,
dynamic Function(Map<String, dynamic>)? fromJson,
}) =>
add(
RestEvent.patch(
path,
body: body,
contentType: contentType,
fromJson: fromJson,
headers: headers,
withLoading: withLoading,
),
);