setCursorPosition method
Moves cursor to a specific position (clamped).
Implementation
void setCursorPosition(int position) {
_cursorPosition = position.clamp(0, _buffer.length);
}
Moves cursor to a specific position (clamped).
void setCursorPosition(int position) {
_cursorPosition = position.clamp(0, _buffer.length);
}