textStyle method
- TextStyle? style,
- {TextOverflow? overflow,
- 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,
);
}