ContextMenuButtonItem constructor

const ContextMenuButtonItem({
  1. required VoidCallback? onPressed,
  2. ContextMenuButtonType type = ContextMenuButtonType.custom,
  3. String? label,
})

Creates a const instance of ContextMenuButtonItem.

Implementation

const ContextMenuButtonItem({
  required this.onPressed,
  this.type = ContextMenuButtonType.custom,
  this.label,
});