Function

isRoot

Return whether the node is the root semantics node.

RevenueCat

RevenueCat

Add subscriptions to your apps in minutes

Ad Get started for free

isRoot

Common
fun isRoot() = SemanticsMatcher("isRoot") { it.isRoot }

Return whether the node is the root semantics node.

There is always one root in every node tree, added implicitly by Compose.