DefaultTextStyleTransition constructor

const DefaultTextStyleTransition({
  1. Key? key,
  2. required Animation<TextStyle> style,
  3. required Widget child,
  4. TextAlign? textAlign,
  5. bool softWrap = true,
  6. TextOverflow overflow = TextOverflow.clip,
  7. int? maxLines,
})

Creates an animated DefaultTextStyle whose TextStyle animation updates the widget.

Implementation

const DefaultTextStyleTransition({
  super.key,
  required Animation<TextStyle> style,
  required this.child,
  this.textAlign,
  this.softWrap = true,
  this.overflow = TextOverflow.clip,
  this.maxLines,
}) : super(listenable: style);