color property

Color? color
final

If provided, the background color used for the menu.

If this property is null, then PopupMenuThemeData.color is used. If PopupMenuThemeData.color is also null, then ThemeData.cardColor is used in Material 2. In Material3, defaults to ColorScheme.surfaceContainer.

Implementation

final Color? color;