ToggleableState

Function

Common
fun ToggleableState(value: Boolean) = if (value) On else Off

Return corresponding ToggleableState based on a Boolean representation

Parameters

valuewhether the ToggleableState is on or off