DropDown<T> constructor

DropDown<T>({
  1. DropDownType dropDownType = DropDownType.Button,
  2. required List<T> items,
  3. List<Widget>? customWidgets,
  4. T? initialValue,
  5. Widget? hint,
  6. dynamic onChanged(
    1. T?
    )?,
  7. bool isExpanded = false,
  8. Widget? icon,
  9. bool isCleared = false,
  10. bool showUnderline = true,
  11. double increaseItemHeight = 0,
})

Implementation

DropDown({
  this.dropDownType = DropDownType.Button,
  required this.items,
  this.customWidgets,
  this.initialValue,
  this.hint,
  this.onChanged,
  this.isExpanded = false,
  this.icon,
  this.isCleared = false,
  this.showUnderline = true,
  this.increaseItemHeight = 0,
})  : assert(!(items is Widget)),
      assert((customWidgets != null)
          ? items.length == customWidgets.length
          : (customWidgets == null));