CupertinoContextMenu constructor Null safety
- {Key? key,
- required List<
Widget> actions, - required Widget child,
- ContextMenuPreviewBuilder? previewBuilder}
Create a context menu.
actions is required and cannot be null or empty.
child
is required and cannot be null.
Implementation
CupertinoContextMenu({
super.key,
required this.actions,
required this.child,
this.previewBuilder,
}) : assert(actions != null && actions.isNotEmpty),
assert(child != null);