getFullHeightForCaret method Null safety

double? getFullHeightForCaret(
  1. TextPosition position,
  2. 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) {
  _computeCaretMetrics(position, caretPrototype);
  return _caretMetrics.fullHeight;
}