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