kElevationToShadow top-level constant Null safety
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:
- Material, which takes an arbitrary double for its elevation and generates a shadow dynamically.
- material.io/design/environment/elevation.html
Implementation
const Map<int, List<BoxShadow>> kElevationToShadow = _elevationToShadow;