CustomDropdown constructor

CustomDropdown({
  1. Key? key,
  2. Widget? label,
  3. String? labelText,
  4. TextStyle? labelStyle,
  5. String? nameKey,
  6. String? nameMapKey,
  7. List<Map<String, dynamic>>? items,
  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. BorderRadius? borderRadius,
  17. BorderSide? borderSide,
  18. Widget? fieldSuffixIcon,
  19. Widget? fieldPrefixIcon,
  20. dynamic onChanged(
    1. Map<String, dynamic>
    )?,
  21. EdgeInsets? contentPadding,
  22. void onRemoveClicked()?,
  23. Widget? basicWidget,
  24. double? customOverRelayWidth,
  25. String? validator(
    1. String?
    )?,
  26. AutovalidateMode? autovalidateMode,
  27. bool? excludeSelected = true,
  28. Color? fillColor = Colors.white,
  29. String? searchHintText,
})

Implementation

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