animatedDefaultTextStyle method

AnimatedDefaultTextStyle animatedDefaultTextStyle({
  1. Curve curve = Curves.linear,
  2. Duration duration = const Duration(milliseconds: 300),
  3. TextStyle textStyle = const TextStyle(),
  4. TextAlign? textAlign,
  5. bool softWrap = true,
  6. TextOverflow? overflow,
  7. int? maxLines,
  8. TextWidthBasis? textWidthBasis,
  9. TextHeightBehavior? textHeightBehavior,
  10. 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);
}