Function

ToggleableState

Return corresponding ToggleableState based on a Boolean representation

ToggleableState

Source set: Common
public fun ToggleableState(value: Boolean): ToggleableState

Return corresponding ToggleableState based on a Boolean representation

Parameters

value whether the ToggleableState is on or off
Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: