AnimatedDefaultTextStyleModifier constructor
const
AnimatedDefaultTextStyleModifier({
- Key? key,
- Widget? child,
- Curve curve = Curves.linear,
- required Duration duration,
- VoidCallback? onEnd,
- Key? modifierKey,
- required TextStyle style,
- TextAlign? textAlign,
- bool softWrap = true,
- TextOverflow overflow = TextOverflow.clip,
- int? maxLines,
- TextWidthBasis textWidthBasis = TextWidthBasis.parent,
- TextHeightBehavior? textHeightBehavior,
Creates a widget that animates the default text style implicitly.
The child
, style
, softWrap
, overflow
, curve
, and duration
arguments must not be null.
Implementation
const AnimatedDefaultTextStyleModifier({
super.key,
super.child,
super.curve,
required super.duration,
super.onEnd,
super.modifierKey,
required this.style,
this.textAlign,
this.softWrap = true,
this.overflow = TextOverflow.clip,
this.maxLines,
this.textWidthBasis = TextWidthBasis.parent,
this.textHeightBehavior,
});