CustomDropdownWithoutSearch<T> constructor

CustomDropdownWithoutSearch<T>({
  1. required List<T> items,
  2. required ValueChanged<T?> onChanged,
  3. bool? canCloseOutsideBounds = true,
  4. required Widget listItemBuilder(
    1. BuildContext,
    2. T,
    3. bool,
    4. VoidCallback ,
    ),
  5. required Widget headerItemBuilder(
    1. BuildContext,
    2. T,
    3. bool
    ),
  6. required String itemLabel(
    1. T
    ),
  7. required T initialItem,
  8. TextStyle? listItemStyle,
  9. SingleSelectController<T>? controller,
  10. int? maxLines = NumberConst.INDEX_1,
  11. Widget hintBuilder(
    1. BuildContext,
    2. String,
    3. bool
    )?,
  12. bool? enabled = true,
  13. double? dropDownHeight,
  14. ScrollController? itemsScrollController,
  15. bool? selectedAtTop,
  16. CustomDropdownDecoration? decoration,
  17. ListItemDecoration? listItemDecoration,
  18. TextStyle? headerStyle,
  19. TextStyle? hintStyle,
  20. dynamic visibility(
    1. bool
    )?,
  21. Icon? itemIcon,
  22. EdgeInsets? listItemPadding,
  23. OverlayPortalController? overlayController,
  24. bool? hideSelectedFieldWhenExpanded = false,
  25. String hintText = StringConst.SELECT_ITEM,
  26. String? validator(
    1. T?
    )?,
  27. EdgeInsets? expandedHeaderPadding,
  28. EdgeInsets? closedHeaderPadding,
  29. CustomDropdownDisabledDecoration? disabledDecoration,
  30. EdgeInsets? itemsListPadding,
  31. bool validateOnChange = true,
  32. Color? closedFilledColor,
  33. Color? expandedFilledColor,
})

Implementation

CustomDropdownWithoutSearch({
  required this.items,
  required this.onChanged,
  this.canCloseOutsideBounds = true,
  required this.listItemBuilder,
  required this.headerItemBuilder,
  required this.itemLabel,
  required this.initialItem,
  this.listItemStyle,
  this.controller,
  this.maxLines = NumberConst.INDEX_1,
  this.hintBuilder,
  this.enabled = true,
  this.dropDownHeight,
  this.itemsScrollController,
  this.selectedAtTop,
  this.decoration,
  this.listItemDecoration,
  this.headerStyle,
  this.hintStyle,
  this.visibility,
  this.itemIcon,
  this.listItemPadding,
  this.overlayController,
  this.hideSelectedFieldWhenExpanded = false,
  this.hintText = StringConst.SELECT_ITEM,
  this.validator,
  this.expandedHeaderPadding,
  this.closedHeaderPadding,
  this.disabledDecoration,
  this.itemsListPadding,
  this.validateOnChange = true, this.closedFilledColor, this.expandedFilledColor,
});