getRadioButtonState

fun getRadioButtonState(key: Any, defaultValue: Boolean = false, isRequired: Boolean = true): EasyFormsRadioButtonState

Create or Get a state that handle RadioButton.

Return

EasyFormsRadioButtonState that provide RadioButton state handling.

Parameters

key

a unique identifier for this state.

defaultValue

control if the RadioButton default state should be checked/unchecked.

isRequired

if this is true, then the user must toggle the RadioButton to change its state to valid.

Sources

androidJvm source
Link copied to clipboard