CupertinoContextMenu constructor

CupertinoContextMenu({
  1. Key? key,
  2. required List<Widget> actions,
  3. required Widget child,
  4. bool enableHapticFeedback = false,
})

Create a context menu.

The actions parameter cannot be empty.

Implementation

CupertinoContextMenu({
  super.key,
  required this.actions,
  required Widget this.child,
  this.enableHapticFeedback = false,
}) : assert(actions.isNotEmpty),
     builder = ((BuildContext context, Animation<double> animation) => child);