dropShadows

fun Modifier.dropShadows(shadows: List<UiShadow>, shape: UiShape? = null): Modifier(source)

Appends exact outer shadows drawn in list and modifier declaration order.

The list is copied. An empty list is a no-op and returns the same modifier instance.

Receiver

modifier chain to extend

Return

this receiver for an empty list, otherwise a new modifier chain

Parameters

shadows

outer shadow layers in draw order

shape

explicit shared outline, or null to use the node's resolved shape