getFullHeightForCaret method

double? getFullHeightForCaret(
  1. TextPosition position
)

Returns the strut bounded height of the glyph at the given position.

Valid only after layout.

Implementation

double? getFullHeightForCaret(TextPosition position) {
  assert(!debugNeedsLayout);
  _layoutTextWithConstraints(constraints);
  return _textPainter.getFullHeightForCaret(position, Rect.zero);
}