RollingText constructor
const
RollingText({
- Key? key,
- required String oldText,
- required String newText,
- EdgeInsets padding = EdgeInsets.zero,
- SymbolTapeStrategy tapeStrategy = const ConsistentSymbolTapeStrategy(0),
- Curve? tapeCurve,
- TapeSlideDirection tapeSlideDirection = TapeSlideDirection.up,
- Clip clipBehavior = Clip.hardEdge,
- bool staggerTapes = true,
- int staggerSoftness = 1,
- bool reverseStaggerDirection = false,
- double? fixedTapeWidth,
- Duration? widthDuration,
- Curve? widthCurve,
- TextStyle? style,
- StrutStyle? strutStyle,
- TextAlign? textAlign,
- TextDirection? textDirection,
- Locale? locale,
- bool? softWrap,
- TextOverflow? overflow,
- TextScaler? textScaler,
- int? maxLines,
- String? semanticsLabel,
- TextWidthBasis? textWidthBasis,
- TextHeightBehavior? textHeightBehavior,
- 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,
});