latchIf

The opposite of resetIf, which will instead set the state to the opposite on this boolean supplier activating.

Return

this

Parameters

notDefState

the supplier that determines whether this option should be set to the opposite of the def. state