PopupMenuTheme constructor Null safety

const PopupMenuTheme(
  1. {Key? key,
  2. required PopupMenuThemeData data,
  3. required Widget child}
)

Creates a popup menu theme that controls the configurations for popup menus in its widget subtree.

The data argument must not be null.

Implementation

const PopupMenuTheme({
  super.key,
  required this.data,
  required super.child,
}) : assert(data != null);