DropdownBelow<T> constructor

DropdownBelow<T>({
  1. Key? key,
  2. required List<DropdownMenuItem<T>> items,
  3. T? value,
  4. Widget? hint,
  5. TextStyle? itemTextstyle,
  6. double? itemWidth,
  7. double? boxHeight,
  8. double? boxWidth,
  9. EdgeInsetsGeometry? boxPadding,
  10. TextStyle? boxTextstyle,
  11. required ValueChanged<T> onChanged,
  12. dynamic onBoxStateChanged(
    1. bool
    )?,
  13. BoxDecoration? boxDecoration,
  14. Color? dropdownColor,
  15. int elevation = 8,
  16. bool isDense = false,
  17. Widget? icon,
})

Implementation

DropdownBelow(
    {Key? key,
    required this.items,
    this.value,
    this.hint,
    this.itemTextstyle,
    this.itemWidth,
    this.boxHeight,
    this.boxWidth,
    this.boxPadding,
    this.boxTextstyle,
    required this.onChanged,
    this.onBoxStateChanged,
    this.boxDecoration,
    this.dropdownColor,
    this.elevation = 8,
    this.isDense = false,
    this.icon})
    : assert(value == null || items.where((DropdownMenuItem<T> item) => item.value == value).length == 1),
      super(key: key);