setCursorPosition method

  1. @override
void setCursorPosition(
  1. int x,
  2. int y
)
override

Moves the cursor to the given x (column) and y (row) position.

Implementation

@override
void setCursorPosition(int x, int y) {
  _cursorX = x.clamp(0, _width - 1);
  _cursorY = y.clamp(0, _height - 1);
}