DropDownMenu constructor
const
DropDownMenu({
- Key? key,
- required DropDownController controller,
- required List<
DropDownItem> headerItems, - required List<
DropDownViewProperty> viewBuilders, - Offset? viewOffset,
- Offset? relativeOffset,
- DropDownDisposeController? disposeController,
- ScrollPhysics? headerPhysics,
- DropDownBoxStyle headerBoxStyle = const DropDownBoxStyle(height: 50),
- DropDownItemStyle headerItemStyle = const DropDownItemStyle(),
- NullableIndexedWidgetBuilder? headerItemBuilder,
- IndexedWidgetBuilder? headerDividerBuilder,
- OnDropDownHeaderItemTap? onHeaderItemTap,
- OnDropDownItemChanged? onHeaderItemChanged,
- OnDropDownExpandStateChanged? onExpandStateChanged,
- Color? viewColor = Colors.white,
- Color? maskColor,
- bool maskVisible = true,
- bool maskFullScreen = true,
- 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);