patch method

  1. @protected
Future<Response> patch(
  1. String path, {
  2. Object? data,
  3. Map<String, dynamic>? headers,
})

Performs a PATCH request to the specified path on this service's base URL.

  • path: The API endpoint path (will be joined with baseUrl)
  • data: Optional body data to send
  • headers: Optional map of additional headers
  • Returns: A Future containing the Response

Implementation

@protected
Future<Response<dynamic>> patch(
  String path, {
  Object? data,
  Map<String, dynamic>? headers,
}) async {
  return await BaseApi.patch(
    joinUrl(_baseUrl, path),
    data: data,
    headers: headers,
  );
}