DataGridController constructor

DataGridController({
  1. int selectedIndex = -1,
  2. DataGridRow? selectedRow,
  3. List<DataGridRow> selectedRows = const <DataGridRow>[],
})

Creates the DataGridController with the selectedIndex, selectedRow and selectedRows.

Implementation

DataGridController({
  this._selectedIndex = -1,
  this._selectedRow,
  List<DataGridRow> selectedRows = const <DataGridRow>[],
}) : _selectedRows = selectedRows.toList() {
  _horizontalOffset = 0.0;
  _verticalOffset = 0.0;
}