copyWith method

TopLogProb copyWith({
  1. String? token,
  2. double? logprob,
  3. Object? bytes = unsetCopyWithValue,
})

Creates a copy with replaced values.

Implementation

TopLogProb copyWith({
  String? token,
  double? logprob,
  Object? bytes = unsetCopyWithValue,
}) {
  return TopLogProb(
    token: token ?? this.token,
    logprob: logprob ?? this.logprob,
    bytes: bytes == unsetCopyWithValue ? this.bytes : bytes as List<int>?,
  );
}