SelectionMenu constructor

const SelectionMenu({
  1. required WidgetBuilder selectorBuilder,
  2. required DropDownButtonBuilder? buttonBuilder,
  3. DropDownPopCreated? onCreated,
  4. DropDownPopShow? onShow,
  5. DropDownPopDismiss? onDismiss,
  6. bool enableOnHover = false,
  7. double? popWidth,
  8. BorderRadiusGeometry? materialBorderRadius,
  9. Color? color = Colors.transparent,
  10. ShapeBorder? shape,
  11. double elevation = 0.0,
  12. Color? shadowColor,
  13. String? barrierLabel,
  14. Color? barrierColor,
  15. bool barrierDismissible = true,
  16. Duration transitionDuration = const Duration(milliseconds: 200),
  17. AlignType alignType = AlignType.left,
  18. GestureTapCallback? onDoubleTap,
  19. GestureLongPressCallback? onLongPress,
  20. GestureTapDownCallback? onTapDown,
  21. GestureTapUpCallback? onTapUp,
  22. GestureTapCancelCallback? onTapCancel,
  23. ValueChanged<bool>? onHighlightChanged,
  24. ValueChanged<bool>? onHover,
  25. MouseCursor? mouseCursor,
  26. Color? focusColor,
  27. Color? hoverColor,
  28. Color? highlightColor,
  29. MaterialStateProperty<Color?>? overlayColor,
  30. Color? splashColor,
  31. InteractiveInkFeatureFactory? splashFactory,
  32. double? radius,
  33. BorderRadius? borderRadius,
  34. ShapeBorder? customBorder,
  35. bool? enableFeedback = true,
  36. bool excludeFromSemantics = false,
  37. FocusNode? focusNode,
  38. bool canRequestFocus = true,
  39. ValueChanged<bool>? onFocusChange,
  40. bool autofocus = false,
  41. Key? key,
})

Implementation

const SelectionMenu(
    {required this.selectorBuilder,
    required this.buttonBuilder,
    this.onCreated,
    this.onShow,
    this.onDismiss,
    this.enableOnHover = false,
    this.popWidth,
    this.materialBorderRadius,
    this.color = Colors.transparent,
    this.shape,
    this.elevation = 0.0,
    this.shadowColor,
    this.barrierLabel,
    this.barrierColor,
    this.barrierDismissible = true,
    this.transitionDuration = const Duration(milliseconds: 200),
    this.alignType = AlignType.left,
    this.onDoubleTap,
    this.onLongPress,
    this.onTapDown,
    this.onTapUp,
    this.onTapCancel,
    this.onHighlightChanged,
    this.onHover,
    this.mouseCursor,
    this.focusColor,
    this.hoverColor,
    this.highlightColor,
    this.overlayColor,
    this.splashColor,
    this.splashFactory,
    this.radius,
    this.borderRadius,
    this.customBorder,
    this.enableFeedback = true,
    this.excludeFromSemantics = false,
    this.focusNode,
    this.canRequestFocus = true,
    this.onFocusChange,
    this.autofocus = false,
    Key? key})
    : super(key: key);