docs: update docs about color property in material card (#117263)
* update docs
* *
* typo
* Revert "typo"
This reverts commit 3e25d4be337b1a41d24b1a86136606d6551b30cf.
* Update card.dart
* Update card.dart
* Update card.dart
diff --git a/packages/flutter/lib/src/material/card.dart b/packages/flutter/lib/src/material/card.dart
index ab8dc0f..fd1fdc4 100644
--- a/packages/flutter/lib/src/material/card.dart
+++ b/packages/flutter/lib/src/material/card.dart
@@ -78,8 +78,9 @@
///
/// 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.
+ /// If this property is null then the ambient [CardTheme.color] is used. If that is null,
+ /// and [ThemeData.useMaterial3] is true, then [ColorScheme.surface] of
+ /// [ThemeData.colorScheme] is used. Otherwise, [ThemeData.cardColor] is used.
final Color? color;
/// The color to paint the shadow below the card.