DropDownWidget constructor
DropDownWidget({
- Key? key,
- double? width,
- required List<
DropDownWidgetItem> data, - dynamic onChanged(
- DropDownWidgetItem item,
- int indexSelected
- int? indexSelected,
- DropDownExpandType dropDownExpandType = DropDownExpandType.down,
- double height = 49,
- int countItemExpandList = DropDownWidgetConstants.countItemExpandDefault,
- String? label,
- TextStyle? labelStyle,
- bool showLabelInList = false,
- String? labelValueDefault,
- Color backgroundColor = Colors.white,
- Color backgroundListColor = Colors.white,
- Color? borderColor,
- bool forceChangeIndex = false,
- bool showArrow = true,
Implementation
DropDownWidget({
Key? key,
this.width,
required this.data,
this.onChanged,
this.indexSelected,
this.dropDownExpandType = DropDownExpandType.down,
this.height = 49,
this.countItemExpandList = DropDownWidgetConstants.countItemExpandDefault,
this.label,
this.labelStyle,
this.showLabelInList = false,
this.labelValueDefault,
this.backgroundColor = Colors.white,
this.backgroundListColor = Colors.white,
this.borderColor,
this.forceChangeIndex = false,
this.showArrow = true,
}) : assert(
data.isNotEmpty,
'A non-null data must be provided to a list widget.',
),
super(key: key);