ChatContextMenuWrapper constructor

const ChatContextMenuWrapper({
  1. Key? key,
  2. required ContextMenuWidgetBuilder widgetBuilder,
  3. required ContextMenuContentBuilder menuBuilder,
  4. Color barrierColor = Colors.transparent,
  5. Color? backgroundColor,
  6. BorderRadius borderRadius = const BorderRadius.all(Radius.circular(8)),
  7. EdgeInsets padding = const EdgeInsets.all(8),
  8. bool requestFocus = false,
  9. List<BoxShadow>? shadows,
  10. double arrowHeight = 8.0,
  11. double arrowWidth = 12.0,
  12. double spacing = 6.0,
  13. Widget? transitionsBuilder(
    1. BuildContext context,
    2. Animation<double> animation,
    3. Animation<double> secondaryAnimation,
    4. Offset centerOffset,
    5. Alignment alignment,
    6. Widget child,
    )?,
  14. Duration transitionDurations = const Duration(milliseconds: 150),
  15. void onClose(
    1. dynamic result
    )?,
  16. double horizontalMargin = 10.0,
  17. BoxConstraints? menuConstraints,
  18. BoxConstraints? layoutConstraints,
  19. Axis axis = Axis.vertical,
  20. double topPadding = kToolbarHeight,
  21. bool excludeAnchorFromBarrier = false,
  22. EdgeInsets barrierAnchorPadding = EdgeInsets.zero,
  23. BorderRadius? barrierAnchorBorderRadius,
})

Implementation

const ChatContextMenuWrapper({
  super.key,
  required this.widgetBuilder,
  required this.menuBuilder,
  this.barrierColor = Colors.transparent,
  this.backgroundColor,
  this.borderRadius = const BorderRadius.all(Radius.circular(8)),
  this.padding = const EdgeInsets.all(8),
  this.requestFocus = false,
  this.shadows,
  this.arrowHeight = 8.0,
  this.arrowWidth = 12.0,
  this.spacing = 6.0,
  this.transitionsBuilder,
  this.transitionDurations = const Duration(milliseconds: 150),
  this.onClose,
  this.horizontalMargin = 10.0,
  this.menuConstraints,
  this.layoutConstraints,
  this.axis = Axis.vertical,
  this.topPadding = kToolbarHeight,
  this.excludeAnchorFromBarrier = false,
  this.barrierAnchorPadding = EdgeInsets.zero,
  this.barrierAnchorBorderRadius,
});