docs/io.github.mkohm.detekt.hint.rules/-a/switch.md
---
title: A.switch -
---
[io.github.mkohm.detekt.hint.rules](../index.html) / [A](index.html) / [switch](./switch.html)
# switch
`fun switch(a: `[`Color`](../-color/index.html)`): `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)