# asConstantColorOrNull

> Converts this [RemoteColor] to a [Color] if it has a constant value, or null otherwise.

## API Reference

### asConstantColorOrNull

> Source set: Android

```kotlin
public fun RemoteColor.asConstantColorOrNull(): Color?
```

Converts this [RemoteColor](https://composables.com/jetpack-compose/androidx.compose.remote/remote-creation-compose/classes/RemoteColor/api.md) to a `Color` if it has a constant value, or null otherwise.
