shadows property
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:
- kElevationToShadow, which defines some shadows for Material design. Those shadows use BlurStyle.normal and may need to be converted to BlurStyle.outer for use with MagnifierDecoration.
Implementation
final List<BoxShadow>? shadows;