PopupMenusButton<T> constructor
const
PopupMenusButton<T> ({
- Key? key,
- required PopupMenusItemBuilder<
T> itemBuilder, - T? initialValue,
- PopupMenusItemSelected<
T> ? onSelected, - PopupMenusCanceled? onCanceled,
- String? tooltip,
- double? elevation,
- EdgeInsetsGeometry padding = const EdgeInsets.all(8.0),
- Widget? child,
- Widget? icon,
- double? iconSize,
- PoupMenusOffsetBuilder? offsetBuilder,
- bool enabled = true,
- ShapeBorder? shape,
- Color? color,
- bool blur = false,
- bool? enableFeedback,
- required ContextBuilder builder,
Implementation
const PopupMenusButton({
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.offsetBuilder,
this.enabled = true,
this.shape,
this.color,
this.blur = false,
this.enableFeedback,
required this.builder,
}) : assert(
!(child != null && icon != null),
'You can only pass [child] or [icon], not both.',
),
super(key: key);