CNContextMenu constructor

const CNContextMenu({
  1. Key? key,
  2. required List<CNPopupMenuEntry> items,
  3. required ValueChanged<List<int>> onSelected,
  4. required Widget child,
  5. bool enabled = true,
  6. bool enableHapticFeedback = true,
  7. bool showsPreview = false,
  8. double previewCornerRadius = 12,
})

Creates a native context menu region around child.

Implementation

const CNContextMenu({
  super.key,
  required this.items,
  required this.onSelected,
  required this.child,
  this.enabled = true,
  this.enableHapticFeedback = true,
  this.showsPreview = false,
  this.previewCornerRadius = 12,
});