style property

TextStyle? style
final

If non-null, the style to use for this text.

If the style's "inherit" property is true, the style will be merged with the closest enclosing DefaultTextStyle. Otherwise, the style will replace the closest enclosing DefaultTextStyle.

The user or platform may override this style's TextStyle.fontWeight, TextStyle.height, TextStyle.letterSpacing, and TextStyle.wordSpacing via a MediaQuery ancestor's MediaQueryData.boldText, MediaQueryData.lineHeightScaleFactorOverride, MediaQueryData.letterSpacingOverride, and MediaQueryData.wordSpacingOverride regardless of its TextStyle.inherit value.

Implementation

final TextStyle? style;