background

Function

Android
public fun CurvedModifier.background(
    color: Color,
    cap: StrokeCap = StrokeCap.Butt,
): CurvedModifier

Specified a solid background for a curved element.

Parameters

colorThe color to use to paint the background.
capHow to start and end the background.