defaultTextStyle method

Widget defaultTextStyle({
  1. required TextStyle style,
  2. TextAlign? textAlign,
  3. bool softWrap = true,
  4. TextOverflow overflow = TextOverflow.clip,
  5. int? maxLines,
  6. TextWidthBasis textWidthBasis = TextWidthBasis.parent,
  7. 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,
  );
}