TableSelectionState
Row and cell selection of one table: the focused row, the checked rows and the selected cell.
Reached as TableState.selection. Every member here has a deprecated forwarder on TableState itself, kept for one release so existing call sites compile with a warning that names the replacement; the forwarders go away in the next major.
The selected cell keeps its declared type TableState.SelectedCell: it is public API pinned by 2.0.0, and a nested class cannot be re-exported under a new name the way a function can, so moving it here would break every consumer that names the type.
Properties
Checked row indices in SelectionMode.Multiple.
Selected cell, or null when no cell is selected.
Focused row index, or null when nothing is selected.
Functions
Toggle checkmark state for index in Multiple selection mode.
Check/uncheck all rows based on current count in Multiple selection mode.
Toggle row selection for index according to TableSettings.selectionMode.