FormBuilderDropdown constructor
FormBuilderDropdown({@required String attribute, @required List<DropdownMenuItem> items, List<FormFieldValidator> validators: const [], bool readOnly: false, InputDecoration decoration: const InputDecoration(), bool isExpanded: true, bool isDense: true, int elevation: 8, double iconSize: 24.0, Widget hint dynamic initialValue, TextStyle style, Widget disabledHint ValueChanged onChanged, ValueTransformer valueTransformer, Widget underline Widget icon Color iconDisabledColor, Color iconEnabledColor, bool allowClear: false, Widget clearIcon: const Icon(Icons.close) })
Implementation
FormBuilderDropdown({
@required this.attribute,
@required this.items,
this.validators = const [],
this.readOnly = false,
this.decoration = const InputDecoration(),
this.isExpanded = true,
this.isDense = true,
this.elevation = 8,
this.iconSize = 24.0,
this.hint,
this.initialValue,
this.style,
this.disabledHint,
this.onChanged,
this.valueTransformer,
this.underline,
this.icon,
this.iconDisabledColor,
this.iconEnabledColor,
this.allowClear = false,
this.clearIcon = const Icon(Icons.close),
}) /*: assert(allowClear == true || clearIcon != null)*/;