ExpressiveMenu constructor

const ExpressiveMenu({
  1. List<ExpressiveMenuGroup>? groups,
  2. ExpressiveComponentThemeData? style,
  3. List<ExpressiveMenuEntry>? entries,
  4. Widget? child,
  5. Widget builder(
    1. BuildContext context,
    2. ExpressiveMenuController menu
    )?,
  6. ExpressiveMenuTrigger trigger = ExpressiveMenuTrigger.tap,
  7. bool vibrant = false,
  8. ExpressiveMenuPosition position = ExpressiveMenuPosition.below,
  9. String? label,
  10. ExpressiveMenuController? controller,
  11. bool matchAnchorWidth = false,
  12. double? maxHeight,
  13. double? wordsStart,
  14. bool modal = true,
  15. 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',
     );