AnimatedDefaultTextStyle constructor
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({
Key key,
@required this.child,
@required this.style,
this.textAlign,
this.softWrap = true,
this.overflow = TextOverflow.clip,
this.maxLines,
Curve curve = Curves.linear,
@required Duration duration,
}) : assert(style != null),
assert(child != null),
assert(softWrap != null),
assert(overflow != null),
assert(maxLines == null || maxLines > 0),
super(key: key, curve: curve, duration: duration);