setCaretRect method
Informs the text input control about caret area changes.
This method is called when the attached input client's caret area changes.
Implementation
@override
void setCaretRect(Rect rect) {
super.setCaretRect(rect);
_caretRect = rect;
_inputControl?.setCaretRectAndTransform(_caretRect, _editableTransform);
}