color property

Color? color
final

The card's background color.

Defines the card's Material.color.

If this property is null then the ambient CardTheme.color is used. If that is null, and ThemeData.useMaterial3 is true, then ColorScheme.surfaceContainerLow of ThemeData.colorScheme is used. Otherwise, ThemeData.cardColor is used.

Implementation

final Color? color;