setCursor method

void setCursor(
  1. int row,
  2. int col
)

Sets the cursor location.

Implementation

void setCursor(int row, int col) {
  final beforeLine = _model.line;
  final beforeColumn = _model.column;
  _model.setCursor(row, col);
  if (beforeLine != _model.line || beforeColumn != _model.column) {
    notifyListeners();
  }
}