Compose Unstyled 2.0 is out! Check the official announcement blog ->
Function

assertIsToggleable

Asserts that the current semantics node is toggleable.

assertIsToggleable

Source set: Common
fun SemanticsNodeInteraction.assertIsToggleable(): SemanticsNodeInteraction

Asserts that the current semantics node is toggleable.

Throws AssertionError if the node is not toggleable.

Last updated: