Toggles the selection of a given row and updates the selection state.
The type of data in the row.
The row data to toggle the selection for.
A function that takes an event and toggles the selection for the row.
Optional
Toggles the selection of a given row and updates the selection state.