AdvancedDropDownSelectWidget constructor

const AdvancedDropDownSelectWidget({
  1. required dynamic key,
  2. bool isReadOnly = false,
  3. String? initiallySelectedItem,
  4. GlobalKey<FormState>? formKey,
  5. required bool isMandatory,
  6. TextDecorationModel? validationFailedDecoration,
  7. required List<String> itemList,
  8. Color? mandatoryIndicatorColor,
  9. required Function onChanged,
  10. bool showLabel = false,
  11. bool showError = false,
  12. bool showErrorBorder = false,
  13. Color? errorBorderColor,
  14. TextDecorationModel? lableTextDecoration,
  15. DropDownDecorationModel? decoration,
  16. List<String>? initiallySelectedItemsList,
  17. Function? onClear,
  18. bool showCloseIcon = true,
  19. EdgeInsets dropDownButtonPadding = const EdgeInsets.only(top: 10, bottom: 10, left: 12, right: 12),
  20. bool isMulti = true,
  21. bool showSelectedValueInHint = false,
  22. double spaceBetweenIconAndSelectedItems = 6,
  23. dynamic dropdownStatus(
    1. bool
    )?,
  24. String hintText = "Search",
  25. bool? showSearchIcon,
  26. bool isAddOnly = false,
  27. String defaultLabelText = "",
  28. TextDecorationModel? labelTextDecoration,
  29. bool showSelectAll = false,
})

Implementation

const AdvancedDropDownSelectWidget({
  required key,
  this.isReadOnly = false,
  this.initiallySelectedItem,
  this.formKey,
  required this.isMandatory,
  this.validationFailedDecoration,
  required this.itemList,
  this.mandatoryIndicatorColor,
  required this.onChanged,
  this.showLabel = false,
  this.showError = false,
  this.showErrorBorder = false,
  this.errorBorderColor,
  this.lableTextDecoration,
  this.decoration,
  this.initiallySelectedItemsList,
  this.onClear,
  this.showCloseIcon = true,
  this.dropDownButtonPadding =
  const EdgeInsets.only(top: 10, bottom: 10, left: 12, right: 12),
  this.isMulti = true,
  this.showSelectedValueInHint = false,
  this.spaceBetweenIconAndSelectedItems = 6,
  this.dropdownStatus,
  this.hintText = "Search",
  this.showSearchIcon,
  this.isAddOnly = false,
  this.defaultLabelText = "",
  this.labelTextDecoration,
  this.showSelectAll = false,
});