CupertinoContextMenu.builder constructor
- Key? key,
- required List<
Widget> actions, - required CupertinoContextMenuBuilder builder,
- bool enableHapticFeedback = false,
Creates a context menu with a custom builder
controlling the widget.
Use instead of the default constructor when it is needed to have a more custom animation.
The actions
parameter cannot be empty.
Implementation
CupertinoContextMenu.builder({
super.key,
required this.actions,
required this.builder,
this.enableHapticFeedback = false,
}) : assert(actions.isNotEmpty),
child = null;