MenuItem constructor

const MenuItem({
  1. IconData? icon,
  2. String? label,
  3. VoidCallback? onTap,
  4. bool isDivider = false,
  5. Widget? customWidget,
  6. Widget? trailing,
  7. TextStyle? labelStyle,
  8. Color? iconColor,
})

Implementation

const MenuItem({
  this.icon,
  this.label,
  this.onTap,
  this.isDivider = false,
  this.customWidget,
  this.trailing,
  this.labelStyle,
  this.iconColor,
});