SContextMenu constructor
const
SContextMenu({
- Key? key,
- required Widget child,
- List<
SContextMenuItem> buttons = const [], - bool followAnchor = false,
- Duration showThrottle = const Duration(milliseconds: 70),
- bool announceAccessibility = true,
- String semanticsMenuLabel = 'Context menu',
- VoidCallback? onOpened,
- VoidCallback? onDismissed,
- void onButtonPressed(
- String label
- SContextMenuTheme? theme,
- bool allowMultipleMenus = false,
- double? backgroundOpacity,
- Color? highlightColor,
- 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,
});