DropDownMenu constructor

const DropDownMenu({
  1. Key? key,
  2. required DropDownController controller,
  3. required List<DropDownItem> headerItems,
  4. required List<DropDownViewProperty> viewBuilders,
  5. Offset? viewOffset,
  6. Offset? relativeOffset,
  7. DropDownDisposeController? disposeController,
  8. ScrollPhysics? headerPhysics,
  9. DropDownBoxStyle headerBoxStyle = const DropDownBoxStyle(height: 50),
  10. DropDownItemStyle headerItemStyle = const DropDownItemStyle(),
  11. NullableIndexedWidgetBuilder? headerItemBuilder,
  12. IndexedWidgetBuilder? headerDividerBuilder,
  13. OnDropDownHeaderItemTap? onHeaderItemTap,
  14. OnDropDownItemChanged? onHeaderItemChanged,
  15. OnDropDownExpandStateChanged? onExpandStateChanged,
  16. Color? viewColor = Colors.white,
  17. Color? maskColor,
  18. bool maskVisible = true,
  19. bool maskFullScreen = true,
  20. Duration animationDuration = const Duration(milliseconds: 150),
})

Implementation

const DropDownMenu({
  super.key,
  required this.controller,
  required this.headerItems,
  required this.viewBuilders,
  this.viewOffset,
  this.relativeOffset,
  this.disposeController,
  this.headerPhysics,
  this.headerBoxStyle = const DropDownBoxStyle(height: 50),
  this.headerItemStyle = const DropDownItemStyle(),
  this.headerItemBuilder,
  this.headerDividerBuilder,
  this.onHeaderItemTap,
  this.onHeaderItemChanged,
  this.onExpandStateChanged,
  this.viewColor = Colors.white,
  this.maskColor,
  this.maskVisible = true,
  this.maskFullScreen = true,
  this.animationDuration = const Duration(milliseconds: 150),
}) : assert(headerItems.length > 0);