ArnaPopupMenuItem constructor

const ArnaPopupMenuItem({
  1. Key? key,
  2. Widget? leading,
  3. required String title,
  4. String? subtitle,
  5. Widget? trailing,
  6. VoidCallback? onTap,
  7. EdgeInsetsGeometry? padding = Styles.popupItemPadding,
  8. double leadingToTitle = Styles.largePadding,
  9. bool enabled = true,
  10. bool isFocusable = true,
  11. bool autofocus = false,
  12. Color? accentColor,
  13. MouseCursor cursor = MouseCursor.defer,
  14. 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,
});