CustomDropdown.search constructor

CustomDropdown.search({
  1. Key? key,
  2. Widget? label,
  3. String? labelText,
  4. TextStyle? labelStyle,
  5. List<Map<String, dynamic>>? items,
  6. String? nameKey,
  7. String? nameMapKey,
  8. String? hintText,
  9. Map<String, dynamic>? selectedValue,
  10. TextStyle? hintStyle,
  11. TextStyle? selectedStyle,
  12. String? errorText,
  13. TextStyle? errorStyle,
  14. TextStyle? listItemStyle,
  15. BorderSide? errorBorderSide,
  16. Map<String, String>? headers,
  17. BorderRadius? borderRadius,
  18. BorderSide? borderSide,
  19. Widget? basicWidget,
  20. Widget? fieldSuffixIcon,
  21. Widget? fieldPrefixIcon,
  22. dynamic onChanged(
    1. Map<String, dynamic>
    )?,
  23. void onRemoveClicked()?,
  24. EdgeInsets? contentPadding,
  25. double? customOverRelayWidth,
  26. bool? excludeSelected = false,
  27. bool? canCloseOutsideBounds = true,
  28. Color? fillColor = Colors.white,
  29. String? validator(
    1. String?
    )?,
  30. AutovalidateMode? autovalidateMode,
  31. String? searchHintText,
})

Implementation

CustomDropdown.search({
  super.key,
  this.label,
  this.labelText,
  this.labelStyle,
  this.items,
  this.nameKey,
  this.nameMapKey,
  this.hintText,
  this.selectedValue,
  this.hintStyle,
  this.selectedStyle,
  this.errorText,
  this.errorStyle,
  this.listItemStyle,
  this.errorBorderSide,
  this.headers,
  this.borderRadius,
  this.borderSide,
  this.basicWidget,
  this.fieldSuffixIcon,
  this.fieldPrefixIcon,
  this.onChanged,
  this.onRemoveClicked,
  this.contentPadding,
  this.customOverRelayWidth,
  this.excludeSelected = false,
  this.canCloseOutsideBounds = true,
  this.fillColor = Colors.white,
  this.validator,
  this.autovalidateMode,
  this.searchHintText,
}) : searchType = SearchType.onListData;