strutStyle property

StrutStyle? get strutStyle

The strut style to use. Strut style defines the strut, which sets minimum vertical layout metrics.

Omitting or providing null will disable strut.

Omitting or providing null for any properties of StrutStyle will result in default values being used. It is highly recommended to at least specify a StrutStyle.fontSize.

See StrutStyle for details.

Implementation

StrutStyle? get strutStyle => _textPainter.strutStyle;
set strutStyle (StrutStyle? value)

The value may be null.

Implementation

set strutStyle(StrutStyle? value) {
  if (_textPainter.strutStyle == value) {
    return;
  }
  _textPainter.strutStyle = value;
  _overflowShader = null;
  markNeedsLayout();
}