RollingText constructor

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

Creates a new RollingText with the given parameters.

Implementation

const RollingText({
  super.key,
  required this.oldText,
  required this.newText,
  this.padding = EdgeInsets.zero,
  this.tapeStrategy = const ConsistentSymbolTapeStrategy(0),
  this.tapeCurve,
  this.tapeSlideDirection = TapeSlideDirection.up,
  this.clipBehavior = Clip.hardEdge,
  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,
});