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. BoxDecoration? boxDecoration,
  13. int elevation = 8,
  14. TextStyle? style,
  15. bool isDense = false,
  16. 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.boxDecoration,
    this.elevation = 8,
    this.style,
    this.isDense = false,
    this.icon})
    : assert(value == null ||
          items
                  .where((DropdownMenuItem<T> item) => item.value == value)
                  .length ==
              1),
      super(key: key);