MenuItem constructor

const MenuItem({
  1. required String value,
  2. required String label,
  3. IconData? icon,
  4. Widget? trailing,
  5. VoidCallback? onTap,
  6. bool enabled = true,
  7. bool isDivider = false,
})

Implementation

const MenuItem({
  required this.value,
  required this.label,
  this.icon,
  this.trailing,
  this.onTap,
  this.enabled = true,
  this.isDivider = false,
});