DropDownHeader constructor

const DropDownHeader({
  1. Key? key,
  2. required DropDownController controller,
  3. required List<DropDownItem> items,
  4. DropDownBoxStyle boxStyle = const DropDownBoxStyle(height: 50),
  5. DropDownItemStyle itemStyle = const DropDownItemStyle(),
  6. OnDropDownHeaderItemTap? onItemTap,
  7. OnDropDownItemChanged? onItemChanged,
  8. OnDropDownExpandStateChanged? onExpandStateChanged,
  9. NullableIndexedWidgetBuilder? itemBuilder,
  10. IndexedWidgetBuilder? dividerBuilder,
  11. 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);