animatedDefaultTextStyle method
AnimatedDefaultTextStyle
animatedDefaultTextStyle({
- Curve curve = Curves.linear,
- Duration duration = const Duration(milliseconds: 300),
- TextStyle textStyle = const TextStyle(),
- TextAlign? textAlign,
- bool softWrap = true,
- TextOverflow? overflow,
- int? maxLines,
- TextWidthBasis? textWidthBasis,
- TextHeightBehavior? textHeightBehavior,
- VoidCallback? onEnd,
Implementation
AnimatedDefaultTextStyle animatedDefaultTextStyle(
{Curve curve = Curves.linear,
Duration duration = const Duration(milliseconds: 300),
TextStyle textStyle = const TextStyle(),
TextAlign? textAlign,
bool softWrap = true,
TextOverflow? overflow,
int? maxLines,
TextWidthBasis? textWidthBasis,
TextHeightBehavior? textHeightBehavior,
VoidCallback? onEnd}) {
return AnimatedDefaultTextStyle(
key: key,
style: textStyle,
textAlign: textAlign,
softWrap: softWrap,
overflow: overflow ?? TextOverflow.clip,
maxLines: maxLines,
textWidthBasis: textWidthBasis ?? TextWidthBasis.parent,
textHeightBehavior: textHeightBehavior,
curve: curve,
duration: duration,
onEnd: onEnd,
child: this);
}