ContextMenuRegion constructor

const ContextMenuRegion({
  1. Key? key,
  2. required Menu menu,
  3. Axis? menuAxis,
  4. Alignment? menuAlignment,
  5. dynamic menuStyle,
  6. Color? barrierColor,
  7. bool alignToOrigin = false,
  8. required Widget child,
})

The top-left corner of a menu is located at the position of a pointer that caused the menu to appear if menuAlignment is null. Otherwise the menu is aligned relative to available menu area bounds unless alignToOrigin is true which makes the menu align to the position of the pointer.

Implementation

const ContextMenuRegion({
  Key? key,
  required this.menu,
  this.menuAxis,
  this.menuAlignment,
  this.menuStyle,
  this.barrierColor,
  this.alignToOrigin = false,
  required this.child
}) : super(key: key);