onDefaultTextStyle method

DefaultTextStyle onDefaultTextStyle({
  1. TextStyle? style,
  2. TextAlign? textAlign,
  3. bool? softWrap,
  4. TextOverflow? overflow,
  5. int? maxLines,
  6. TextWidthBasis? textWidthBasis,
  7. TextHeightBehavior? textHeightBehavior,
  8. 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;
}