ContextualMenu constructor

const ContextualMenu({
  1. Key? key,
  2. required GlobalKey<State<StatefulWidget>> targetWidgetKey,
  3. required Widget child,
  4. required List<ContextPopupMenuItem> items,
  5. Color? backgroundColor,
  6. Color? highlightColor,
  7. Color? lineColor,
  8. void onDismiss()?,
  9. bool dismissOnClickAway = true,
  10. void stateChanged(
    1. bool change
    )?,
  11. 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);