getFullHeightForCaret method
- TextPosition position,
- Rect caretPrototype
Returns the strut bounded height of the glyph at the given position
.
Valid only after layout has been called.
Implementation
double getFullHeightForCaret(TextPosition position, Rect caretPrototype) {
final TextBox textBox = _getOrCreateLayoutTemplate().getBoxesForRange(0, 1, boxHeightStyle: ui.BoxHeightStyle.strut).single;
return textBox.toRect().height;
}