GetPopupMenu<T extends Object> constructor
const
GetPopupMenu<T extends Object> ({
- GetPopupMenuChildBuilder? childBuilder,
- GetPopupMenuItemBuilder<
T> ? itemBuilder, - GetPopupMenuSeparatorBuilder<
T> ? separatorBuilder, - GetPopupMenuItemSelected<
T> ? onSelected, - VoidCallback? onCanceled,
- required List<
T> items, - int? initialSelected,
- double elevation = 12,
- double cornerRadius = 16,
- double? itemHeight = 36,
- double? itemPadding = 4,
- double? titleSize = 14,
- double? accessorySize = 20,
- Color? tintColor,
- Color? backgroundColor,
- EdgeInsets padding = const EdgeInsets.symmetric(horizontal: 12),
- Offset? offset,
- bool enabled = true,
- bool autoTint = false,
- bool separator = true,
- String? semanticLabel,
- Key? key,
Creates a widget that shows a popup menu.
The items argument must not be null.
Implementation
const GetPopupMenu({
this.childBuilder,
this.itemBuilder,
this.separatorBuilder,
this.onSelected,
this.onCanceled,
required this.items,
this.initialSelected,
this.elevation = 12,
this.cornerRadius = 16,
this.itemHeight = 36,
this.itemPadding = 4,
this.titleSize = 14,
this.accessorySize = 20,
this.tintColor,
this.backgroundColor,
this.padding = const EdgeInsets.symmetric(horizontal: 12),
this.offset,
this.enabled = true,
this.autoTint = false,
this.separator = true,
this.useRootNavigator = false,
this.semanticLabel,
Key? key,
}) : super(key: key);