kElevationToShadow top-level constant Null safety

Map<int, List<BoxShadow>> const kElevationToShadow

Map of elevation offsets used by material design to BoxShadow definitions.

The following elevations have defined shadows: 1, 2, 3, 4, 6, 8, 9, 12, 16, 24.

Each entry has three shadows which must be combined to obtain the defined effect for that elevation.

This is useful when simulating a shadow with a BoxDecoration or other class that uses a list of BoxShadow objects.

See also:


const Map<int, List<BoxShadow>> kElevationToShadow = _elevationToShadow;