DropDownHeader constructor
const
DropDownHeader({
- Key? key,
- required DropDownController controller,
- required List<
DropDownItem> items, - DropDownBoxStyle boxStyle = const DropDownBoxStyle(height: 50),
- DropDownItemStyle itemStyle = const DropDownItemStyle(),
- OnDropDownHeaderItemTap? onItemTap,
- OnDropDownItemChanged? onItemChanged,
- OnDropDownExpandStateChanged? onExpandStateChanged,
- NullableIndexedWidgetBuilder? itemBuilder,
- IndexedWidgetBuilder? dividerBuilder,
- ScrollPhysics? physics,
Implementation
const DropDownHeader({
super.key,
required this.controller,
required this.items,
this.boxStyle = const DropDownBoxStyle(height: 50),
this.itemStyle = const DropDownItemStyle(),
this.onItemTap,
this.onItemChanged,
this.onExpandStateChanged,
this.itemBuilder,
this.dividerBuilder,
this.physics,
}) : assert(items.length > 0);