setShadow

fun <T : ShapeComponent> T.setShadow(radius: Dp, dx: Dp = 0.dp, dy: Dp = 0.dp, color: Color = Color(DEF_SHADOW_COLOR), applyElevationOverlay: Boolean = false): T

Applies a drop shadow to this ShapeComponent.

Parameters

radius

the blur radius.

dx

the horizontal offset.

dy

the vertical offset.

color

the shadow color.

applyElevationOverlay

whether to apply an elevation overlay to the ShapeComponent.