getOffsetForCaret abstract method

Offset getOffsetForCaret(
  1. TextPosition position,
  2. Rect caretPrototype
)

Returns the offset at which to paint the caret.

Valid only after layout.

Implementation

Offset getOffsetForCaret(TextPosition position, Rect caretPrototype);