CupertinoContextMenuModifier constructor

const CupertinoContextMenuModifier({
  1. Key? key,
  2. Widget? child,
  3. Key? modifierKey,
  4. required List<Widget> actions,
  5. dynamic previewBuilder,
})

Create a context menu.

actions is required and cannot be null or empty.

child is required and cannot be null.

Implementation

const CupertinoContextMenuModifier({
  super.key,
  super.child,
  super.modifierKey,
  required this.actions,
  this.previewBuilder,
});