copyWith method

TruncationRetentionRatio copyWith({
  1. double? retentionRatio,
  2. Object? postInstructionsTokenLimit = unsetCopyWithValue,
})

Returns a copy of this TruncationRetentionRatio with the given fields replaced.

Pass null for postInstructionsTokenLimit to clear the existing value.

Implementation

TruncationRetentionRatio copyWith({
  double? retentionRatio,
  Object? postInstructionsTokenLimit = unsetCopyWithValue,
}) => TruncationRetentionRatio(
  retentionRatio: retentionRatio ?? this.retentionRatio,
  postInstructionsTokenLimit:
      identical(postInstructionsTokenLimit, unsetCopyWithValue)
      ? this.postInstructionsTokenLimit
      : postInstructionsTokenLimit as int?,
);