void pageTo(int rowIndex)

Ensures that the given row is visible.

Source

void pageTo(int rowIndex) {
  final int oldFirstRowIndex = _firstRowIndex;
  setState(() {
    final int rowsPerPage = config.rowsPerPage;
    _firstRowIndex = (rowIndex ~/ rowsPerPage) * rowsPerPage;
  });
  if ((config.onPageChanged != null) &&
      (oldFirstRowIndex != _firstRowIndex))
    config.onPageChanged(_firstRowIndex);
}