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 onButtonPressed(
    1. String label
    )?,
  11. SContextMenuTheme? theme,
  12. bool allowMultipleMenus = false,
  13. double? backgroundOpacity,
  14. Color? highlightColor,
  15. 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.onButtonPressed,
  this.theme,
  this.allowMultipleMenus = false,
  this.backgroundOpacity,
  this.highlightColor,
  this.shouldPreventWebBrowserContextMenu = kIsWeb,
});