---
title: "ToggleableState"
description: "Return corresponding ToggleableState based on a Boolean representation"
type: "function"
---

<div class='type'>Function</div>


<a id='references'></a>
<div class='sourceset sourceset-common'>Common</div>


```kotlin
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 |




