position property
set
position
(int pos)
Sets the cursor position.
Implementation
set position(int pos) {
_pos = pos.clamp(0, _value.length);
if (multiline) {
_followMultilineCursor = true;
}
_handleOverflow();
_syncCoreState();
}