AppMenu<T> constructor
AppMenu<T> ({
- Key? key,
- List<
T> ? items, - PopupMenuItemBuilder<
T> ? itemBuilder, - T? initialValue,
- PopupMenuItemSelected<
T> ? onSelected, - PopupMenuCanceled? onCanceled,
- String? tooltip,
- double? elevation,
- EdgeInsetsGeometry? padding,
- Widget? child,
- double? splashRadius,
- Widget? icon,
- double? iconSize,
- Offset? offset,
- bool? enabled,
- ShapeBorder? shape,
- Color? color,
- bool? enableFeedback,
- BoxConstraints? constraints,
- PopupMenuPosition? position,
Supply all the properties to instantiate a custom PopupMenuButton.
Implementation
AppMenu({
this.key,
this.items,
this.menuEntries,
this.itemBuilder,
this.initialValue,
this.onSelected,
this.onCanceled,
this.tooltip,
this.elevation,
this.padding,
this.child,
this.splashRadius,
this.icon,
this.iconSize,
this.offset,
this.enabled,
this.shape,
this.color,
this.enableFeedback,
this.constraints,
this.position, // Either PopupMenuPosition.over or PopupMenuPosition.under
});