DropdownButtonFormField<T> constructor

const DropdownButtonFormField<T>({
  1. Key? key,
  2. List<DropdownMenuItem<T>>? items,
  3. T? value,
  4. ValueChanged<T?>? onChanged,
  5. FormFieldSetter<T>? onSaved,
  6. FormFieldValidator<T>? validator,
  7. Widget? hint,
  8. Widget? disabledHint,
  9. InputDecoration? decoration,
  10. TextStyle? style,
  11. Widget? icon,
  12. Color? iconDisabledColor,
  13. Color? iconEnabledColor,
  14. double iconSize = 24.0,
  15. bool isDense = false,
  16. bool isExpanded = false,
  17. double? itemHeight,
  18. Color? dropdownColor,
  19. EdgeInsetsGeometry? padding,
  20. bool autofocus = false,
  21. FocusNode? focusNode,
  22. bool enableFeedback = true,
  23. AlignmentGeometry alignment = AlignmentDirectional.centerStart,
})

Implementation

const DropdownButtonFormField({
  super.key,
  this.items,
  this.value,
  this.onChanged,
  this.onSaved,
  this.validator,
  this.hint,
  this.disabledHint,
  this.decoration,
  this.style,
  this.icon,
  this.iconDisabledColor,
  this.iconEnabledColor,
  this.iconSize = 24.0,
  this.isDense = false,
  this.isExpanded = false,
  this.itemHeight,
  this.dropdownColor,
  this.padding,
  this.autofocus = false,
  this.focusNode,
  this.enableFeedback = true,
  this.alignment = AlignmentDirectional.centerStart,
});