XMenuItem constructor
const
XMenuItem({
- Key? key,
- required Widget label,
- Widget? leading,
- Widget? trailing,
- VoidCallback? onTap,
- VoidCallback? onLongPress,
- VoidCallback? onDoubleTap,
- double? totalSpace = 8,
- double? leadingSpace,
- double? trailingSpace,
- 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(),
});