DfDropdownWrapper<T> constructor
const
DfDropdownWrapper<T> ({
- Key? key,
- List<
DropDownModel< initData = const [],T> > - DropDownModel<
T> ? selectedValue, - String? labelText,
- dynamic onOptionSelected(
- DropDownModel<
T> ?
- DropDownModel<
- String? validator(
- DropDownModel<
T> ?
- DropDownModel<
- DropdownDecoration? decoration,
- Widget? arrowWidget,
- bool disabled = false,
- Future<
List< ? asyncInitData,DropDownModel< >T> > - SimpleSelectorDecoration? selectorDecoration,
- Widget? child,
- bool closeOnTapOutside = true,
Constructor for DfDropdownWrapper.
selectorDecoration
: Additional custom styling for the dropdown selector.child
: Custom widget to be displayed in the dropdown field.closeOnTapOutside
: Whether to close the dropdown when the user taps outside the dropdown.
Implementation
const DfDropdownWrapper({
super.key,
super.initData = const [],
super.selectedValue,
super.labelText,
super.onOptionSelected,
super.validator,
super.decoration,
super.arrowWidget,
super.disabled = false,
super.asyncInitData,
this.selectorDecoration,
this.child,
super.closeOnTapOutside,
}) : assert(initData.length == 0 || asyncInitData == null,
"initData and asyncInitData cannot be provided at the same time");