CupertinoContextMenuAction constructor Null safety

const CupertinoContextMenuAction(
  1. {Key? key,
  2. required Widget child,
  3. bool isDefaultAction = false,
  4. bool isDestructiveAction = false,
  5. VoidCallback? onPressed,
  6. IconData? trailingIcon}
)

Construct a CupertinoContextMenuAction.

Implementation

const CupertinoContextMenuAction({
  super.key,
  required this.child,
  this.isDefaultAction = false,
  this.isDestructiveAction = false,
  this.onPressed,
  this.trailingIcon,
}) : assert(child != null),
     assert(isDefaultAction != null),
     assert(isDestructiveAction != null);