caret
Installs caret as the text component's caret. A style that stops setting it restores the component's previous caret.
Keep one caret instance across recompositions with remember or an object. Installing a caret resets its position to offset 0 and clears the selection. Use caretBlinkRate to enable blinking, since a look and feel gives its blink rate only to the caret it creates itself. The caret stays installed when the look and feel changes, because a look and feel replaces only a caret it created.
Use a custom caret to control whether the selection remains visible while the component is unfocused. navigationFilter controls where the caret may move. DocumentState.selection controls the component's selection.
Parameters
the caret the component navigates and selects with.