RollingTextEffect constructor

const RollingTextEffect({
  1. required String oldText,
  2. required String newText,
  3. EdgeInsets padding = EdgeInsets.zero,
  4. SymbolTapeStrategy tapeStrategy = const ConsistentSymbolTapeStrategy(0),
  5. Clip clipBehavior = Clip.hardEdge,
  6. Curve? tapeCurve,
  7. TapeSlideDirection tapeSlideDirection = TapeSlideDirection.up,
  8. bool staggerTapes = true,
  9. int staggerSoftness = 1,
  10. bool reverseStaggerDirection = false,
  11. double? fixedTapeWidth,
  12. Duration? widthDuration,
  13. Curve? widthCurve,
  14. TextStyle? style,
  15. StrutStyle? strutStyle,
  16. TextAlign? textAlign,
  17. TextDirection? textDirection,
  18. Locale? locale,
  19. bool? softWrap,
  20. TextOverflow? overflow,
  21. TextScaler? textScaler,
  22. int? maxLines,
  23. String? semanticsLabel,
  24. TextWidthBasis? textWidthBasis,
  25. TextHeightBehavior? textHeightBehavior,
  26. Color? selectionColor,
})

Creates a RollingTextEffect.

Implementation

const RollingTextEffect({
  required this.oldText,
  required this.newText,
  this.padding = EdgeInsets.zero,
  this.tapeStrategy = const ConsistentSymbolTapeStrategy(0),
  this.clipBehavior = Clip.hardEdge,
  this.tapeCurve,
  this.tapeSlideDirection = TapeSlideDirection.up,
  this.staggerTapes = true,
  this.staggerSoftness = 1,
  this.reverseStaggerDirection = false,
  this.fixedTapeWidth,
  this.widthDuration,
  this.widthCurve,
  this.style,
  this.strutStyle,
  this.textAlign,
  this.textDirection,
  this.locale,
  this.softWrap,
  this.overflow,
  this.textScaler,
  this.maxLines,
  this.semanticsLabel,
  this.textWidthBasis,
  this.textHeightBehavior,
  this.selectionColor,
}) : textSpan = null;