AnimatedDefaultTextStyleModifier constructor

const AnimatedDefaultTextStyleModifier({
  1. Key? key,
  2. Widget? child,
  3. Curve curve = Curves.linear,
  4. required Duration duration,
  5. VoidCallback? onEnd,
  6. Key? modifierKey,
  7. required TextStyle style,
  8. TextAlign? textAlign,
  9. bool softWrap = true,
  10. TextOverflow overflow = TextOverflow.clip,
  11. int? maxLines,
  12. TextWidthBasis textWidthBasis = TextWidthBasis.parent,
  13. 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,
});