SContextMenu constructor

const SContextMenu({
  1. Key? key,
  2. required Widget child,
  3. List<SContextMenuItem> buttons = const [],
  4. bool followAnchor = false,
  5. Duration showThrottle = const Duration(milliseconds: 70),
  6. bool announceAccessibility = true,
  7. String semanticsMenuLabel = 'Context menu',
  8. VoidCallback? onOpened,
  9. VoidCallback? onDismissed,
  10. void onTapOutsideMenu(
    1. Object? tapRegionGroupId
    )?,
  11. void onButtonPressed(
    1. String label
    )?,
  12. SContextMenuTheme? theme,
  13. bool? showArrow,
  14. bool allowMultipleMenus = false,
  15. double? backgroundOpacity,
  16. Color? highlightColor,
  17. Object? tapRegionGroupId,
  18. bool shouldPreventWebBrowserContextMenu = kIsWeb,
})

Implementation

const SContextMenu({
  super.key,
  required this.child,
  this.buttons = const [],
  this.followAnchor = false,
  this.showThrottle = const Duration(milliseconds: 70),
  this.announceAccessibility = true,
  this.semanticsMenuLabel = 'Context menu',
  this.onOpened,
  this.onDismissed,
  this.onTapOutsideMenu,
  this.onButtonPressed,
  this.theme,
  this.showArrow,
  this.allowMultipleMenus = false,
  this.backgroundOpacity,
  this.highlightColor,
  this.tapRegionGroupId,
  this.shouldPreventWebBrowserContextMenu = kIsWeb,
});