Function

asConstantTextUnitOrNull

Converts this RemoteTextUnit to a TextUnit if it has a constant value, or null otherwise.

asConstantTextUnitOrNull

Source set: Android
public fun RemoteTextUnit.asConstantTextUnitOrNull(): TextUnit?

Converts this RemoteTextUnit to a TextUnit if it has a constant value, or null otherwise.

Return

the constant TextUnit value of this RemoteTextUnit, or null if it is dynamic

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: