ArnaPopupMenuItem constructor
const
ArnaPopupMenuItem({
- Key? key,
- Widget? leading,
- required String title,
- String? subtitle,
- Widget? trailing,
- VoidCallback? onTap,
- EdgeInsetsGeometry? padding = Styles.popupItemPadding,
- double leadingToTitle = Styles.largePadding,
- bool enabled = true,
- bool isFocusable = true,
- bool autofocus = false,
- Color? accentColor,
- MouseCursor cursor = MouseCursor.defer,
- String? semanticLabel,
Creates an item for a popup menu.
By default, the item is enabled.
Implementation
const ArnaPopupMenuItem({
super.key,
this.leading,
required this.title,
this.subtitle,
this.trailing,
this.onTap,
this.padding = Styles.popupItemPadding,
this.leadingToTitle = Styles.largePadding,
this.enabled = true,
this.isFocusable = true,
this.autofocus = false,
this.accentColor,
this.cursor = MouseCursor.defer,
this.semanticLabel,
});