backgroundColor

fun Modifier.backgroundColor(color: Color): Modifier

Sets the background color of the modifier.

Return

A Modifier with the specified background color.

Parameters

color

The color to be used as the background color, converted to RGBA.