CustomDropdownField constructor

const CustomDropdownField({
  1. Key? key,
  2. String? label,
  3. TextStyle? labelStyle,
  4. String? hint,
  5. required Map<String, String> items,
  6. String? selectedKey,
  7. String? errorMsg,
  8. Color? errorColor,
  9. void onChanged(
    1. String key,
    2. String value
    )?,
  10. Color? borderColor,
  11. Color? focusedBorderColor,
  12. Color? textColor,
  13. Color? hintColor,
  14. Color? iconColor,
  15. bool isDisabled = false,
  16. bool isOptionalMark = false,
  17. Color? disabledBorderColor,
  18. Color? disabledTextColor,
  19. Color? disabledBackgroundColor,
  20. Widget? prefixIcon,
})

Implementation

const CustomDropdownField({
  Key? key,
  this.label,
  this.labelStyle,
  this.hint,
  required this.items,
  this.selectedKey,
  this.errorMsg,
  this.errorColor,
  this.onChanged,
  this.borderColor,
  this.focusedBorderColor,
  this.textColor,
  this.hintColor,
  this.iconColor,
  this.isDisabled = false,
  this.isOptionalMark = false,
  this.disabledBorderColor,
  this.disabledTextColor,
  this.disabledBackgroundColor,
  this.prefixIcon,
}) : super(key: key);