getFullHeightForCaret method

  1. @override
double? getFullHeightForCaret(
  1. TextPosition position
)
override

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

Valid only after layout has been called.

Implementation

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