selectRow method
Selects the row identified by key. Selecting the already-selected row
toggles it off (matching how the built-in header tap handling behaves).
Pass null to explicitly clear the row selection.
Implementation
void selectRow(Object? key) {
if (key == null) {
clearRow();
return;
}
if (_selectedRowKey == key) {
clearRow();
return;
}
_selectedRowKey = key;
if (exclusive) _selectedColumnKey = null;
notifyListeners();
}