background

Sets background; on a non-opaque component also declare opaque(true) for it to paint.

Return

this modifier with the background color declared on it.

Parameters

color

the background color; null takes the color from the parent container. Which parts of a component the color reaches is up to that component and to the platform.

See also