copyWith method
Creates a copy with modified parameters
Implementation
StreamingTextConfig copyWith({
Duration? typingSpeed,
bool? wordByWord,
int? chunkSize,
bool? fadeInEnabled,
Duration? fadeInDuration,
Curve? fadeInCurve,
}) {
return StreamingTextConfig(
typingSpeed: typingSpeed ?? this.typingSpeed,
wordByWord: wordByWord ?? this.wordByWord,
chunkSize: chunkSize ?? this.chunkSize,
fadeInEnabled: fadeInEnabled ?? this.fadeInEnabled,
fadeInDuration: fadeInDuration ?? this.fadeInDuration,
fadeInCurve: fadeInCurve ?? this.fadeInCurve,
);
}