textStyle method

Widget textStyle(
  1. TextStyle? style,
  2. {TextOverflow? overflow,
  3. TextAlign? textAlign}
)

Changes this widget's TextStyle.

Implementation

Widget textStyle(TextStyle? style, {TextOverflow? overflow, TextAlign? textAlign}) {
  return DefaultTextStyle(
    style: style ?? const TextStyle(),
    overflow: overflow ?? TextOverflow.ellipsis,
    textAlign: textAlign,
    child: this,
  );
}