OutlineButtonMenu constructor

const OutlineButtonMenu({
  1. Key? key,
  2. List<MenuItem> menu = const [],
  3. required Widget child,
  4. VoidCallback? onPressed,
  5. bool? enabled,
  6. Widget? leading,
  7. Widget? trailing,
  8. AlignmentGeometry? alignment,
  9. ButtonSize size = ButtonSize.normal,
  10. ButtonDensity density = ButtonDensity.normal,
  11. ButtonShape shape = ButtonShape.rectangle,
  12. FocusNode? focusNode,
  13. bool disableTransition = false,
  14. ValueChanged<bool>? onHover,
  15. ValueChanged<bool>? onFocus,
  16. bool? enableFeedback,
  17. GestureTapDownCallback? onTapDown,
  18. GestureTapUpCallback? onTapUp,
  19. GestureTapCancelCallback? onTapCancel,
  20. GestureTapDownCallback? onSecondaryTapDown,
  21. GestureTapUpCallback? onSecondaryTapUp,
  22. GestureTapCancelCallback? onSecondaryTapCancel,
  23. GestureTapDownCallback? onTertiaryTapDown,
  24. GestureTapUpCallback? onTertiaryTapUp,
  25. GestureTapCancelCallback? onTertiaryTapCancel,
  26. GestureLongPressStartCallback? onLongPressStart,
  27. GestureLongPressUpCallback? onLongPressUp,
  28. GestureLongPressMoveUpdateCallback? onLongPressMoveUpdate,
  29. GestureLongPressEndCallback? onLongPressEnd,
  30. GestureLongPressUpCallback? onSecondaryLongPress,
  31. GestureLongPressUpCallback? onTertiaryLongPress,
})

Implementation

const OutlineButtonMenu({
  super.key,
  this.menu = const [],
  required this.child,
  this.onPressed,
  this.enabled,
  this.leading,
  this.trailing,
  this.alignment,
  this.size = ButtonSize.normal,
  this.density = ButtonDensity.normal,
  this.shape = ButtonShape.rectangle,
  this.focusNode,
  this.disableTransition = false,
  this.onHover,
  this.onFocus,
  this.enableFeedback,
  this.onTapDown,
  this.onTapUp,
  this.onTapCancel,
  this.onSecondaryTapDown,
  this.onSecondaryTapUp,
  this.onSecondaryTapCancel,
  this.onTertiaryTapDown,
  this.onTertiaryTapUp,
  this.onTertiaryTapCancel,
  this.onLongPressStart,
  this.onLongPressUp,
  this.onLongPressMoveUpdate,
  this.onLongPressEnd,
  this.onSecondaryLongPress,
  this.onTertiaryLongPress,
});