BaseDropdown<T> constructor
const
BaseDropdown<T> ({
- Key? key,
- List<
DropDownModel< initData = const [],T> > - DropDownModel<
T> ? selectedValue, - String? labelText,
- String? hintText,
- dynamic onOptionSelected(
- DropDownModel<
T> ?
- DropDownModel<
- String? validator(
- DropDownModel<
T> ?
- DropDownModel<
- DropdownDecoration? decoration,
- Widget? arrowWidget,
- DropdownType dropdownType = DropdownType.expandable,
- bool disabled = false,
- Future<
List< ? asyncInitData,DropDownModel< >T> > - bool closeOnTapOutside = true,
Implementation
const BaseDropdown({
super.key,
this.initData = const [],
this.selectedValue,
this.labelText,
this.hintText,
this.onOptionSelected,
this.validator,
this.decoration,
this.arrowWidget,
this.dropdownType = DropdownType.expandable,
this.disabled = false,
this.asyncInitData,
this.closeOnTapOutside = true,
}) : assert(initData.length == 0 || asyncInitData == null,
"initData and asyncInitData cannot be provided at the same time");