leadingDistribution property Null safety

TextLeadingDistribution? leadingDistribution

How the vertical space added by the height multiplier should be distributed over and under the strut.

When a non-null height is specified, after accommodating the imaginary strut glyph, the remaining vertical space from the allotted fontSize * height logical pixels will be distributed over and under the strut, according to the leadingDistribution property.

The additional leading introduced by the leading property applies independently of leadingDistribution: it will always be distributed evenly over and under the strut, regardless of leadingDistribution.

Defaults to null, which defers to the paragraph's ParagraphStyle.textHeightBehavior's leadingDistribution.


final TextLeadingDistribution? leadingDistribution;