toggled

inline fun <T : Grid> T.toggled(address: Grid.Address): T

Returns a modified copy of the Grid with the Grid.State.isSelected value toggled at the given Grid.Address.

Invalid Addresses will result in Exceptions. See Grid.isValidAddress.