getOffsetForCaret abstract method

Offset getOffsetForCaret(
  1. TextPosition position
)

Returns the offset at which to paint the caret.

The position parameter must be relative to the node's content.

Valid only after layout.

Implementation

Offset getOffsetForCaret(TextPosition position);