color property Null safety

Color? color
final

The card's background color.

Defines the card's Material.color.

If this property is null then CardTheme.color of ThemeData.cardTheme is used. If that's null then ThemeData.cardColor is used.

Implementation

final Color? color;