shadowColor property Null safety

Color? shadowColor
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:

Implementation

final Color? shadowColor;