changed

inline fun <T : Grid> T.changed(address: Grid.Address, isVisible: Boolean = this[address].isVisible, isSelected: Boolean = this[address].isSelected): T

Returns a modified copy of the Grid with the specified Grid.State update at the given Grid.Address.

If the State does not change, the same Grid instance is returned.

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