shadowColor property Null safety
final
The color to paint the shadow below the material.
When ThemeData.useMaterial3 is true, and this is null, then no drop shadow will be rendered for this material. If it is non-null, then this color will be used to render a drop shadow below the material.
When ThemeData.useMaterial3 is false, and this is null, then ThemeData.shadowColor is used, which defaults to fully opaque black.
See also:
- ThemeData.useMaterial3, which determines the default value for this property if it is null.
- ThemeData.applyElevationOverlayColor, which turns elevation overlay on or off for dark themes.
Implementation
final Color? shadowColor;