Widget.defaultTextStyle constructor Null safety
- {Key? key,
- required TextStyle style,
- TextAlign? textAlign,
- @Default(true) bool softWrap,
- @Default(TextOverflow.clip) TextOverflow overflow,
- int? maxLines,
- @Default(TextWidthBasis.parent) TextWidthBasis textWidthBasis,
- TextHeightBehavior? textHeightBehavior,
- required Widget child}
Implementation
const factory Widget.defaultTextStyle({
Key? key,
required TextStyle style,
TextAlign? textAlign,
@Default(true) bool softWrap,
@Default(TextOverflow.clip) TextOverflow overflow,
int? maxLines,
@Default(TextWidthBasis.parent) TextWidthBasis textWidthBasis,
TextHeightBehavior? textHeightBehavior,
required Widget child,
}) = DefaultTextStyle;