FPopupMenu<T> constructor
const
FPopupMenu<T> ({
- Key? key,
- required List<
PopupMenuEntry< items,T> > - T? initialValue,
- VoidCallback? onOpened,
- PopupMenuItemSelected<
T> ? onSelected, - PopupMenuCanceled? onCanceled,
- String? tooltip,
- double? elevation,
- Color? shadowColor,
- Color? surfaceTintColor,
- EdgeInsetsGeometry padding = const EdgeInsets.all(8.0),
- Widget? child,
- double? splashRadius,
- Offset offset = Offset.zero,
- bool enabled = true,
- ShapeBorder? shape,
- Color? color,
- bool? enableFeedback,
- BoxConstraints? constraints,
- PopupMenuPosition? position,
- Clip clipBehavior = Clip.none,
- PressType pressType = PressType.tap,
- bool addDivider = false,
Implementation
const FPopupMenu({
super.key,
required this.items,
this.initialValue,
this.onOpened,
this.onSelected,
this.onCanceled,
this.tooltip,
this.elevation,
this.shadowColor,
this.surfaceTintColor,
this.padding = const EdgeInsets.all(8.0),
this.child,
this.splashRadius,
this.offset = Offset.zero,
this.enabled = true,
this.shape,
this.color,
this.enableFeedback,
this.constraints,
this.position,
this.clipBehavior = Clip.none,
this.pressType = PressType.tap,
this.addDivider = false,
});