Function

getOrNull

Returns the value for key, or null if not present.

getOrNull

Source set: Common
public fun <T> SemanticsPropertyProvider.getOrNull(key: SemanticsPropertyKey<T>): T?

Returns the value for key, or null if not present.

Parameters

key Property key to retrieve.

Return

Value associated with key, or null if not present.

getOrNull

Source set: Common
public fun <T> SemanticsConfiguration.getOrNull(key: SemanticsPropertyKey<T>): T?

Retrieves the value for the given property, or null if the property is not present.

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: