Function

asConstantColor

Converts this RemoteColor to a Color if it has a constant value.

asConstantColor

Source set: Android
public fun RemoteColor.asConstantColor(): Color

Converts this RemoteColor to a Color if it has a constant value.

Return

the constant Color value of this RemoteColor

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: