Function

findNearestAncestor

Finds the nearest traversable ancestor with a matching key.

findNearestAncestor

Source set: Common
public fun DelegatableNode.findNearestAncestor(key: Any?): TraversableNode?

Finds the nearest traversable ancestor with a matching key.

findNearestAncestor

Source set: Common
public fun <T> T.findNearestAncestor(): T? where T : TraversableNode

Finds the nearest ancestor of the same class and key.

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: