AnimatedDefaultTextStyle constructor

const AnimatedDefaultTextStyle({Key key, @required Widget child, @required TextStyle style, TextAlign textAlign, bool softWrap: true, TextOverflow overflow: TextOverflow.clip, int maxLines, Curve curve: Curves.linear, @required Duration duration })

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);