BottomPopupMenuButton<T> constructor
const
BottomPopupMenuButton<T> ({
- Key? key,
- required PopupMenuItemBuilder<
T> itemBuilder, - T? initialValue,
- PopupMenuItemSelected<
T> ? onSelected, - PopupMenuCanceled? onCanceled,
- String? tooltip,
- double? elevation,
- EdgeInsetsGeometry padding = const EdgeInsets.all(8.0),
- Widget? child,
- Widget? icon,
- double? iconSize,
- RelativeRect position = const RelativeRect.fromLTRB(0, 0, 0, 0),
- bool enabled = true,
- ShapeBorder? shape,
- Color? color,
- bool? enableFeedback,
Implementation
const BottomPopupMenuButton({
Key? key,
required this.itemBuilder,
this.initialValue,
this.onSelected,
this.onCanceled,
this.tooltip,
this.elevation,
this.padding = const EdgeInsets.all(8.0),
this.child,
this.icon,
this.iconSize,
this.position = const RelativeRect.fromLTRB(0, 0, 0, 0),
this.enabled = true,
this.shape,
this.color,
this.enableFeedback,
}) : assert(itemBuilder != null),
assert(position != null),
assert(enabled != null),
assert(!(child != null && icon != null),
'You can only pass [child] or [icon], not both.'),
super(key: key);