DropdownBelow<T> constructor
DropdownBelow<T> ({
- Key? key,
- required List<
DropdownMenuItem< items,T> > - T? value,
- Widget? hint,
- TextStyle? itemTextstyle,
- double? itemWidth,
- double? boxHeight,
- double? boxWidth,
- EdgeInsetsGeometry? boxPadding,
- TextStyle? boxTextstyle,
- required ValueChanged<
T> onChanged, - BoxDecoration? boxDecoration,
- int elevation = 8,
- TextStyle? style,
- bool isDense = false,
- 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);