textHeightBehavior property

TextHeightBehavior textHeightBehavior

Defines how the paragraph will apply TextStyle.height to the ascent of the first line and descent of the last line.

Each boolean value represents whether the TextStyle.height modifier will be applied to the corresponding metric. By default, all properties are true, and TextStyle.height is applied as normal. When set to false, the font's default ascent will be used.

Implementation

ui.TextHeightBehavior get textHeightBehavior => _textPainter.textHeightBehavior;
void textHeightBehavior= (TextHeightBehavior value)

Implementation

set textHeightBehavior(ui.TextHeightBehavior value) {
  if (_textPainter.textHeightBehavior == value)
    return;
  _textPainter.textHeightBehavior = value;
  _overflowShader = null;
  markNeedsLayout();
}