shadows property

List<BoxShadow>? shadows
final

A list of shadows cast by the shape.

If the shadows are offset, consider setting RawMagnifier.clipBehavior to Clip.hardEdge (or similar) to ensure the shadow does not occlude the magnifier (the shadow is drawn above the magnifier).

If the shadows are not offset, consider using BlurStyle.outer in the shadows instead, to avoid having to introduce a clip.

In the event that shape consists of a stack of borders, the shadow is drawn using the bounds of the last one.

See also:

Implementation

final List<BoxShadow>? shadows;