copyWith method

StreamingTextConfig copyWith({
  1. Duration? typingSpeed,
  2. bool? wordByWord,
  3. int? chunkSize,
  4. bool? fadeInEnabled,
  5. Duration? fadeInDuration,
  6. Curve? fadeInCurve,
})

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