patch static method

Future patch(
  1. String path, {
  2. Object? body,
  3. Map<String, String>? headers,
})

PATCH request.

Implementation

static Future<dynamic> patch(
  String path, {
  Object? body,
  Map<String, String>? headers,
}) async {
  final response = await _httpClient.patch(
    Uri.parse('$_baseUrl$path'),
    headers: {..._defaultHeaders, ...?headers},
    body: body != null ? jsonEncode(body) : null,
  );

  return _handleResponse(response);
}