CustomPopupMenu constructor

const CustomPopupMenu({
  1. Key? key,
  2. required Widget child,
  3. required Widget menuBuilder(),
  4. required PressType pressType,
  5. CustomPopupMenuController? controller,
  6. Color arrowColor = const Color(0xFF4C4C4C),
  7. bool showArrow = true,
  8. Color barrierColor = Colors.black12,
  9. double arrowSize = 10.0,
  10. double horizontalMargin = 10.0,
  11. double verticalMargin = 10.0,
  12. PreferredPosition? position,
  13. void menuOnChange(
    1. bool
    )?,
  14. bool enablePassEvent = true,
})

Implementation

const CustomPopupMenu({
  Key? key,
  required this.child,
  required this.menuBuilder,
  required this.pressType,
  this.controller,
  this.arrowColor = const Color(0xFF4C4C4C),
  this.showArrow = true,
  this.barrierColor = Colors.black12,
  this.arrowSize = 10.0,
  this.horizontalMargin = 10.0,
  this.verticalMargin = 10.0,
  this.position,
  this.menuOnChange,
  this.enablePassEvent = true,
}) : super(key: key);