DropDownListView constructor

const DropDownListView({
  1. Key? key,
  2. required DropDownController controller,
  3. required List<DropDownItem> items,
  4. DropDownListDataController? dataController,
  5. int? headerIndex,
  6. DropDownBoxStyle boxStyle = const DropDownBoxStyle(),
  7. DropDownItemStyle itemStyle = const DropDownItemStyle(activeBackgroundColor: Color(0xFFF5F5F5), activeIcon: Icon(Icons.check, size: 20, color: Colors.blue), activeTextStyle: TextStyle(color: Colors.blue), padding: EdgeInsets.symmetric(horizontal: 16), textExpand: true, alignment: Alignment.centerLeft),
  8. IndexedWidgetBuilder? itemBuilder,
  9. OnDropDownItemTap? onDropDownItemTap,
  10. OnDropDownItemChanged? onDropDownItemChanged,
  11. int? maxMultiChoiceSize,
  12. OnDropDownItemLimitExceeded? onDropDownItemLimitExceeded,
  13. Widget? btnWidget,
  14. Widget? resetWidget,
  15. Widget? confirmWidget,
  16. DropDownButtonStyle buttonStyle = const DropDownButtonStyle(),
  17. OnDropDownItemsReset? onDropDownItemsReset,
  18. OnDropDownItemsConfirm? onDropDownItemsConfirm,
  19. OnDropDownHeaderUpdate? onDropDownHeaderUpdate,
  20. ScrollPhysics? physics,
  21. bool? shrinkWrap,
  22. bool dataCopy = true,
})

Implementation

const DropDownListView({
  super.key,
  required this.controller,
  required this.items,
  this.dataController,
  this.headerIndex,
  this.boxStyle = const DropDownBoxStyle(),
  this.itemStyle = const DropDownItemStyle(
    activeBackgroundColor: Color(0xFFF5F5F5),
    activeIcon: Icon(Icons.check, size: 20, color: Colors.blue),
    activeTextStyle: TextStyle(color: Colors.blue),
    padding: EdgeInsets.symmetric(horizontal: 16),
    textExpand: true,
    alignment: Alignment.centerLeft,
  ),
  this.itemBuilder,
  this.onDropDownItemTap,
  this.onDropDownItemChanged,
  this.maxMultiChoiceSize,
  this.onDropDownItemLimitExceeded,
  this.btnWidget,
  this.resetWidget,
  this.confirmWidget,
  this.buttonStyle = const DropDownButtonStyle(),
  this.onDropDownItemsReset,
  this.onDropDownItemsConfirm,
  this.onDropDownHeaderUpdate,
  this.physics,
  this.shrinkWrap,
  this.dataCopy = true,
});