AnimatedDefaultTextStyle constructor Null safety
- {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.
The child, style, softWrap, overflow, curve, and duration arguments must not be null.
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(style != null),
assert(child != null),
assert(softWrap != null),
assert(overflow != null),
assert(maxLines == null || maxLines > 0),
assert(textWidthBasis != null);