patch abstract method
Sends a PATCH request to endpoint.
Use for partial updates — only send the fields that changed in data.
Example:
final result = await _api.patch(
endpoint: '/users/42',
data: {'displayName': newName},
);
Implementation
Future<Either<Failure, Response>> patch({
required String endpoint,
Object? data,
Map<String, dynamic>? params,
Duration? receiveTimeout,
Duration? sendTimeout,
Map<String, String>? headers,
ProgressCallback? onSendProgress,
ProgressCallback? onReceiveProgress,
CancelToken? cancelToken,
bool showLoader = true,
});