ContextualMenu constructor
const
ContextualMenu({
- Key? key,
- required GlobalKey<
State< targetWidgetKey,StatefulWidget> > - required Widget child,
- required List<
ContextPopupMenuItem> items, - Color? backgroundColor,
- Color? highlightColor,
- Color? lineColor,
- void onDismiss()?,
- bool dismissOnClickAway = true,
- void stateChanged(
- bool change
- int maxColumns = 3,
Implementation
const ContextualMenu({
Key? key,
required this.targetWidgetKey,
required this.child,
required this.items,
this.backgroundColor,
this.highlightColor,
this.lineColor,
this.onDismiss,
this.dismissOnClickAway = true,
this.stateChanged,
this.maxColumns = 3,
}) : super(key: key);