Function

indexForKey

The index of an item identified by a given key.

indexForKey

Source set: Common
public fun SemanticsPropertyReceiver.indexForKey(mapping: (Any) -> Int): Unit

The index of an item identified by a given key. The key is usually defined during the creation of the container. If the key did not match any of the items' keys, the mapping must return -1.

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: