AnimatedDefaultTextStyle constructor
- Key? key,
- required Widget child,
- required TextStyle style,
- TextAlign? textAlign,
- bool softWrap = true,
- TextOverflow overflow = TextOverflow.clip,
- int? maxLines,
- TextWidthBasis textWidthBasis = TextWidthBasis.parent,
- TextHeightBehavior? textHeightBehavior,
- Curve curve = Curves.linear,
- required Duration duration,
- VoidCallback? onEnd,
Creates a widget that animates the default text style implicitly.
Implementation
const AnimatedDefaultTextStyle({
super.key,
required this.child,
required this.style,
this.textAlign,
this.softWrap = true,
this.overflow = TextOverflow.clip,
this.maxLines,
this.textWidthBasis = TextWidthBasis.parent,
this.textHeightBehavior,
super.curve,
required super.duration,
super.onEnd,
}) : assert(maxLines == null || maxLines > 0);