strutStyle property

  1. @override
StrutStyle? strutStyle
override

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

@override
StrutStyle? get strutStyle => _textPainter.strutStyle;
  1. @override
void strutStyle=(StrutStyle? value)
override

The value may be null.

Implementation

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