PopMenu<T> constructor
const
PopMenu<T> ({
- required Widget child,
- required PopupMenuItemBuilder<
T> builder, - void onSelected(
- T
- VoidCallback? onCanceled,
- T? initialValue,
- bool enable = true,
- bool popOnTap = false,
- bool popOnLongPress = true,
- bool popOnRightClick = true,
- Offset offset = Offset.zero,
- Color? hoverColor,
- double? borderRadius = 3,
- 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();