copyWith method
Implementation
ParakeetTdtDecodeState copyWith({
int? lastTokenId,
int? emittedSymbols,
int? frameIndex,
bool clearLastToken = false,
}) {
return ParakeetTdtDecodeState(
lastTokenId: clearLastToken ? null : (lastTokenId ?? this.lastTokenId),
emittedSymbols: emittedSymbols ?? this.emittedSymbols,
frameIndex: frameIndex ?? this.frameIndex,
);
}