PopMenu<T> constructor

const PopMenu<T>({
  1. required Widget child,
  2. required PopupMenuItemBuilder<T> builder,
  3. void onSelected(
    1. T
    )?,
  4. VoidCallback? onCanceled,
  5. T? initialValue,
  6. bool enable = true,
  7. bool popOnTap = false,
  8. bool popOnLongPress = true,
  9. bool popOnRightClick = true,
  10. bool useRootNavigator = true,
  11. Offset offset = Offset.zero,
  12. Color? hoverColor,
  13. double? borderRadius = 3,
  14. Key? key,
})

Implementation

const PopMenu({
  required this.child,
  required this.builder,
  this.onSelected,
  this.onCanceled,
  this.initialValue,
  this.enable = true,
  this.popOnTap = false,
  this.popOnLongPress = true,
  this.popOnRightClick = true,
  this.useRootNavigator = true,
  this.offset = Offset.zero,
  this.hoverColor,
  this.borderRadius = 3,
  super.key,
}) : super();