debugPaintTextLayoutBoxes property
getter/setter pair
Causes the paragraph to paint the layout boxes of the text.
Each painted box illustrates how the encompassed text contributes to the overall text layout. For instance, for paragraphs whose StrutStyle is disabled, the line height of a line is the smallest vertical extent that covers all text boxes on that line.
Typically, only characters with a non-zero horizontal advance produce these boxes. No boxes will be painted for lines that only consist of a new line character.
The paint method reads this flag only in debug mode.
Implementation
bool debugPaintTextLayoutBoxes = false;