CustomDropdownWithoutSearch<T> constructor
CustomDropdownWithoutSearch<T> ({
- required List<
T> items, - required ValueChanged<
T?> onChanged, - bool? canCloseOutsideBounds = true,
- required Widget listItemBuilder(
- BuildContext,
- T,
- bool,
- VoidCallback ,
- required Widget headerItemBuilder(
- BuildContext,
- T,
- bool
- required String itemLabel(
- T
- required T initialItem,
- TextStyle? listItemStyle,
- SingleSelectController<
T> ? controller, - int? maxLines = NumberConst.INDEX_1,
- Widget hintBuilder()?,
- bool? enabled = true,
- double? dropDownHeight,
- ScrollController? itemsScrollController,
- bool? selectedAtTop,
- CustomDropdownDecoration? decoration,
- ListItemDecoration? listItemDecoration,
- TextStyle? headerStyle,
- TextStyle? hintStyle,
- dynamic visibility()?,
- Icon? itemIcon,
- EdgeInsets? listItemPadding,
- OverlayPortalController? overlayController,
- bool? hideSelectedFieldWhenExpanded = false,
- String hintText = StringConst.SELECT_ITEM,
- String? validator(
- T?
- EdgeInsets? expandedHeaderPadding,
- EdgeInsets? closedHeaderPadding,
- CustomDropdownDisabledDecoration? disabledDecoration,
- EdgeInsets? itemsListPadding,
- bool validateOnChange = true,
- Color? closedFilledColor,
- 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,
});