Function Common fun ToggleableState(value: Boolean) = if (value) On else Off Return corresponding ToggleableState based on a Boolean representation Parameters value whether the ToggleableState is on or off