get Switch State
fun getSwitchState(key: Any, defaultValue: Boolean = false, isRequired: Boolean = true): EasyFormsSwitchState
Content copied to clipboard
Create or Get a state that handle Switch.
Return
EasyFormsSwitchState that provide Switch state handling.
Parameters
key
a unique identifier for this state.
defaultValue
control if the Switch default state should be checked/unchecked.
isRequired
if this is true, then the user must toggle the Switch to change its state to valid.
Sources
androidJvm source
Link copied to clipboard