ExpressiveMenu constructor
const
ExpressiveMenu({
- List<
ExpressiveMenuGroup> ? groups, - ExpressiveComponentThemeData? style,
- List<
ExpressiveMenuEntry> ? entries, - Widget? child,
- Widget builder(
- BuildContext context,
- ExpressiveMenuTrigger trigger = ExpressiveMenuTrigger.tap,
- bool vibrant = false,
- ExpressiveMenuPosition position = ExpressiveMenuPosition.below,
- String? label,
- ExpressiveMenuController? controller,
- bool matchAnchorWidth = false,
- double? maxHeight,
- double? wordsStart,
- bool modal = true,
- Key? key,
A menu of groups or entries, anchored to child or to what builder builds.
Implementation
const ExpressiveMenu({
this.groups,
this.style,
this.entries,
this.child,
this.builder,
this.trigger = ExpressiveMenuTrigger.tap,
this.vibrant = false,
this.position = ExpressiveMenuPosition.below,
this.label,
this.controller,
this.matchAnchorWidth = false,
this.maxHeight,
this.wordsStart,
this.modal = true,
super.key,
}) : assert(
(groups == null) != (entries == null),
'groups or entries, one of them',
),
assert(
(child == null) != (builder == null),
'child or builder, one of them',
);