DfSimpleDropdown<T> constructor
const
DfSimpleDropdown<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> > - SimpleSelectorDecoration? selectorDecoration,
Implementation
const DfSimpleDropdown({
super.key,
super.initData = const [],
super.selectedValue,
super.labelText,
super.hintText,
super.onOptionSelected,
super.validator,
super.decoration,
super.arrowWidget,
super.dropdownType = DropdownType.expandable,
super.disabled = false,
super.asyncInitData,
this.selectorDecoration,
}) : assert(initData.length == 0 || asyncInitData == null,
"initData and asyncInitData cannot be provided at the same time");