color property

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 then a semi-transparent overlay color will be composited on top this color to indicate the elevation.

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


final Color color