shadows property

List<BoxShadow>? get shadows

The list of shadows, or null if the decoration doesn't define one.

Implementation

List<BoxShadow>? get shadows => switch (this) {
  BoxDecoration(:final boxShadow) => boxShadow,
  ShapeDecoration(:final shadows) => shadows,
  _ => null,
};