TestableDropdownButtonFormField<T> constructor
TestableDropdownButtonFormField<T> ({
- bool autofocus = false,
- @Deprecated('Use [autovalidateMode] instead') bool? autovalidate,
- AutovalidateMode? autovalidateMode,
- dynamic decoration = const InputDecoration(),
- Widget? disabledHint,
- Color? dropdownColor,
- int elevation = 8,
- bool enabled = true,
- Color? focusColor,
- FocusNode? focusNode,
- TestableGestures? gestures,
- Widget? hint,
- Widget? icon,
- double iconSize = 24.0,
- String? id,
- List<
DropdownMenuItem< ? items,T> > - Color? iconDisabledColor,
- Color? iconEnabledColor,
- bool isDense = true,
- bool isExpanded = false,
- double? itemHeight,
- ValueChanged? onChanged,
- FormFieldSetter<
T> ? onSaved, - VoidCallback? onTap,
- String? scrollableId,
- dynamic selectedItemBuilder,
- FormFieldValidator<
T> ? validator, - TextStyle? style,
- T? value,
Implementation
TestableDropdownButtonFormField({
this.autofocus = false,
// ignore: deprecated_member_use_from_same_package
@Deprecated('Use [autovalidateMode] instead') this.autovalidate,
this.autovalidateMode,
this.decoration = const InputDecoration(),
this.disabledHint,
this.dropdownColor,
this.elevation = 8,
this.enabled = true,
this.focusColor,
this.focusNode,
this.gestures,
this.hint,
this.icon,
this.iconSize = 24.0,
this.id,
this.items,
this.iconDisabledColor,
this.iconEnabledColor,
this.isDense = true,
this.isExpanded = false,
this.itemHeight,
this.onChanged,
this.onSaved,
this.onTap,
this.scrollableId,
this.selectedItemBuilder,
this.validator,
this.style,
this.value,
});