resetIf

Sets a supplier that determines whether this option should be returned to default state. Useful for options that should not be interacted with under certain conditions.

Return

this

Parameters

defState

the supplier that determines whether this option should be reset to default state