DropdownMenu constructor

DropdownMenu({
  1. Key? key,
  2. required List<DropdownMenuBuilder> menus,
  3. DropdownMenuController? controller,
  4. Duration showDuration = const Duration(milliseconds: 300),
  5. Duration hideDuration = const Duration(milliseconds: 150),
  6. ValueChanged<int>? onHide,
  7. double? blur,
  8. double? packUpHeight,
  9. double? maxMenuHeight,
  10. Curve hideCurve = Curves.fastOutSlowIn,
  11. DropdownMenuShowHideSwitchStyle switchStyle = DropdownMenuShowHideSwitchStyle.animationShowUntilAnimationHideComplete,
  12. Curve showCurve = Curves.fastOutSlowIn,
})

Implementation

DropdownMenu({
  Key? key,
  required this.menus,
  DropdownMenuController? controller,
  this.showDuration = const Duration(milliseconds: 300),
  this.hideDuration = const Duration(milliseconds: 150),
  this.onHide,
  this.blur,
  this.packUpHeight,
  this.maxMenuHeight,
  this.hideCurve = Curves.fastOutSlowIn,
  this.switchStyle: DropdownMenuShowHideSwitchStyle.animationShowUntilAnimationHideComplete,
  this.showCurve = Curves.fastOutSlowIn,
}) : super(key: key, controller: controller);