XMenuItem constructor

const XMenuItem({
  1. Key? key,
  2. required Widget label,
  3. Widget? leading,
  4. Widget? trailing,
  5. VoidCallback? onTap,
  6. VoidCallback? onLongPress,
  7. VoidCallback? onDoubleTap,
  8. double? totalSpace = 8,
  9. double? leadingSpace,
  10. double? trailingSpace,
  11. XMenuItemStyle style = const XMenuItemStyle(),
})

Implementation

const XMenuItem({
  super.key,
  required this.label,
  this.leading,
  this.trailing,
  this.onTap,
  this.onLongPress,
  this.onDoubleTap,
  this.totalSpace = 8,
  this.leadingSpace,
  this.trailingSpace,
  this.style = const XMenuItemStyle(),
});