color property Null safety

Color? color

The color to paint the material.

Must be opaque. To create a transparent piece of material, use MaterialType.transparency.

To support dark themes, if the surrounding ThemeData.applyElevationOverlayColor is true and ThemeData.brightness is Brightness.dark then a semi-transparent overlay color will be composited on top of this color to indicate the elevation.

By default, the color is derived from the type of material.


final Color? color;