DfSimpleDropdown<T> constructor

const DfSimpleDropdown<T>({
  1. Key? key,
  2. List<DropDownModel<T>> initData = const [],
  3. DropDownModel<T>? selectedValue,
  4. String? labelText,
  5. String? hintText,
  6. dynamic onOptionSelected(
    1. DropDownModel<T>?
    )?,
  7. String? validator(
    1. DropDownModel<T>?
    )?,
  8. DropdownDecoration? decoration,
  9. Widget? arrowWidget,
  10. DropdownType dropdownType = DropdownType.expandable,
  11. bool disabled = false,
  12. Future<List<DropDownModel<T>>>? asyncInitData,
  13. 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");