menuThemeData property Null safety

PopupMenuThemeData? menuThemeData
final

The theme of the popup menu.

Uses any none null property in provided PopupMenuThemeData, if it is null or any property in it is null, then it uses property values from Theme.of(context).popupMenuTheme if they are not null, for any null value the following fallback defaults are used:

  color: theme.cardColor.withOpacity(0.9)
  shape: RoundedRectangleBorder(
           borderRadius: BorderRadius.circular(8),
           side: BorderSide(
           color: theme.dividerColor))
  elevation: 3
  textStyle: theme.textTheme.bodyText2!
  enableFeedback: true

Implementation

final PopupMenuThemeData? menuThemeData;