shadow property

List<BoxShadow>? shadow
final

Custom light-mode drop shadow for glass surfaces.

When non-null, this replaces the built-in elevation shadow entirely. The shadows are inverse-clipped to only appear outside the glass boundary, preventing the glass from blurring its own shadow.

When null (the default), the built-in Apple-matching shadow is used, scaled by shadowElevation.

Has no effect in dark mode.

Implementation

final List<BoxShadow>? shadow;