ComPopupMenu constructor

const ComPopupMenu({
  1. Key? key,
  2. required Widget child,
  3. required Widget? menuBuilder,
  4. PressType pressType = PressType.singleClick,
  5. ComPopupMenuController? controller,
  6. Color? arrowColor,
  7. bool showArrow = true,
  8. Color barrierColor = Colors.black12,
  9. double arrowSize = 14.0,
  10. double horizontalMargin = 16.0,
  11. double verticalMargin = 4.0,
  12. PreferredPosition? position,
  13. void menuOnChange(
    1. bool
    )?,
  14. bool enablePassEvent = true,
  15. String? semanticLabel,
  16. bool excludeFromSemantics = false,
})

Implementation

const ComPopupMenu({
  super.key,
  required this.child,
  required this.menuBuilder,
  this.pressType = PressType.singleClick,
  this.controller,
  this.arrowColor,
  this.showArrow = true,
  this.barrierColor = Colors.black12,
  this.arrowSize = 14.0,
  this.horizontalMargin = 16.0,
  this.verticalMargin = 4.0,
  this.position,
  this.menuOnChange,
  this.enablePassEvent = true,
  this.semanticLabel,
  this.excludeFromSemantics = false,
})  : assert(arrowSize > 0, 'Arrow size must be positive'),
      assert(horizontalMargin >= 0, 'Horizontal margin must be non-negative'),
      assert(verticalMargin >= 0, 'Vertical margin must be non-negative');