DataGridController constructor
DataGridController({
- int selectedIndex = -1,
- DataGridRow? selectedRow,
- List<
DataGridRow> selectedRows = const <DataGridRow>[],
Creates the DataGridController with the selectedIndex
, selectedRow
and selectedRows
.
Implementation
DataGridController(
{int selectedIndex = -1,
DataGridRow? selectedRow,
List<DataGridRow> selectedRows = const <DataGridRow>[]})
: _selectedRow = selectedRow,
_selectedIndex = selectedIndex,
_selectedRows = selectedRows.toList() {
_horizontalOffset = 0.0;
_verticalOffset = 0.0;
}