copyWith method
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>?,
);
}