cursor property

int get cursor

Gets the cursor position.

Implementation

int get cursor => _cursor;
set cursor (int value)

Sets the cursor position.

Implementation

set cursor(int value) {
  _cursor = value.clamp(0, _rows.length - 1);
  updateViewport();
}