updateFloatingCursor method

  1. @override
void updateFloatingCursor(
  1. RawFloatingCursorPoint point
)
override

Updates the floating cursor position and state.

See also:

Implementation

@override
void updateFloatingCursor(RawFloatingCursorPoint point) {
  final TextPosition currentTextPosition = TextPosition(offset: 1);
  Rect _startCaretRect = renderEditable!.getLocalRectForCaret(currentTextPosition);
  renderEditable!.setFloatingCursor(point.state, _startCaretRect.center, currentTextPosition);
}