ToggleableState
Source set: 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 |
Return corresponding ToggleableState based on a Boolean representation
Compose Multiplatform
Ship iOS, desktop, and web apps with Compose
RevenueCat
Add subscriptions to your apps in minutes
fun ToggleableState(value: Boolean) = if (value) On else Off
Return corresponding ToggleableState based on a Boolean representation
| value | whether the ToggleableState is on or off |
Last updated: