defaultTextStyle method
Widget
defaultTextStyle({
- required TextStyle style,
- TextAlign? textAlign,
- bool softWrap = true,
- TextOverflow overflow = TextOverflow.clip,
- int? maxLines,
- TextWidthBasis textWidthBasis = TextWidthBasis.parent,
- TextHeightBehavior? textHeightBehavior,
Implementation
Widget defaultTextStyle({
required TextStyle style,
TextAlign? textAlign,
bool softWrap = true,
TextOverflow overflow = TextOverflow.clip,
int? maxLines,
TextWidthBasis textWidthBasis = TextWidthBasis.parent,
TextHeightBehavior? textHeightBehavior,
}) {
return DefaultTextStyle(
child: this,
style: style,
textAlign: textAlign,
softWrap: softWrap,
overflow: overflow,
maxLines: maxLines,
textWidthBasis: textWidthBasis,
textHeightBehavior: textHeightBehavior,
);
}