DropdownButtonFormField<T> constructor
const
DropdownButtonFormField<T> ({
- Key? key,
- List<
DropdownMenuItem< ? items,T> > - T? value,
- ValueChanged<
T?> ? onChanged, - FormFieldSetter<
T> ? onSaved, - FormFieldValidator<
T> ? validator, - Widget? hint,
- Widget? disabledHint,
- InputDecoration? decoration,
- TextStyle? style,
- Widget? icon,
- Color? iconDisabledColor,
- Color? iconEnabledColor,
- double iconSize = 24.0,
- bool isDense = false,
- bool isExpanded = false,
- double? itemHeight,
- Color? dropdownColor,
- EdgeInsetsGeometry? padding,
- bool autofocus = false,
- FocusNode? focusNode,
- bool enableFeedback = true,
- 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,
});