FormItemDynamicLabeledDropdownField constructor

const FormItemDynamicLabeledDropdownField({
  1. TextEditingController? controller,
  2. required Map<String, String> items,
  3. String? labelText,
  4. String? lengthErrorText = "",
  5. Widget? prefix,
  6. Widget? suffix,
  7. void onSaved(
    1. String? key,
    2. String? value
    )?,
  8. double dropdownWidth = 100,
  9. bool dense = false,
  10. Color? backgroundColor,
  11. Color? dropdownColor,
  12. void onChanged(
    1. String? key,
    2. String? value
    )?,
  13. bool enabled = true,
  14. List<String> suggestion = const [],
  15. String validator(
    1. String? key,
    2. String? value
    )?,
  16. String separator = ":",
  17. TextInputType keyboardType = TextInputType.text,
  18. int? maxLength,
  19. int? minLength,
  20. int? maxLines,
  21. int minLines = 1,
  22. void onDeleteSuggestion(
    1. String value
    )?,
  23. bool allowEmpty = false,
  24. String? hintText,
  25. bool readOnly = false,
  26. bool obscureText = false,
  27. String? counterText = "",
})

Implementation

const FormItemDynamicLabeledDropdownField(
    {this.controller,
    required this.items,
    this.labelText,
    this.lengthErrorText = "",
    this.prefix,
    this.suffix,
    this.onSaved,
    this.dropdownWidth = 100,
    this.dense = false,
    this.backgroundColor,
    this.dropdownColor,
    this.onChanged,
    this.enabled = true,
    this.suggestion = const [],
    this.validator,
    this.separator = ":",
    this.keyboardType = TextInputType.text,
    this.maxLength,
    this.minLength,
    this.maxLines,
    this.minLines = 1,
    this.onDeleteSuggestion,
    this.allowEmpty = false,
    this.hintText,
    this.readOnly = false,
    this.obscureText = false,
    this.counterText = ""});