copyWith method

ClientResponseError copyWith({
  1. Object? id = _acpCopyWithAbsent,
  2. Object? error = _acpCopyWithAbsent,
})

Implementation

ClientResponseError copyWith({
  Object? id = _acpCopyWithAbsent,
  Object? error = _acpCopyWithAbsent,
}) => ClientResponseError(
  id: identical(id, _acpCopyWithAbsent) ? this.id : id as RequestId,
  error: identical(error, _acpCopyWithAbsent)
      ? this.error
      : error as AcpError,
);