position property

int get position

Gets the cursor position.

Implementation

int get position => _pos;
set position (int pos)

Sets the cursor position.

Implementation

set position(int pos) {
  _pos = pos.clamp(0, _value.length);
  _handleOverflow();
}