TestableDropdownButtonFormField<T> constructor

TestableDropdownButtonFormField<T>({
  1. bool autofocus = false,
  2. @Deprecated('Use [autovalidateMode] instead') bool? autovalidate,
  3. AutovalidateMode? autovalidateMode,
  4. dynamic decoration = const InputDecoration(),
  5. Widget? disabledHint,
  6. Color? dropdownColor,
  7. int elevation = 8,
  8. bool enabled = true,
  9. Color? focusColor,
  10. FocusNode? focusNode,
  11. TestableGestures? gestures,
  12. Widget? hint,
  13. Widget? icon,
  14. double iconSize = 24.0,
  15. String? id,
  16. List<DropdownMenuItem<T>>? items,
  17. Color? iconDisabledColor,
  18. Color? iconEnabledColor,
  19. bool isDense = true,
  20. bool isExpanded = false,
  21. double? itemHeight,
  22. ValueChanged? onChanged,
  23. FormFieldSetter<T>? onSaved,
  24. VoidCallback? onTap,
  25. String? scrollableId,
  26. dynamic selectedItemBuilder,
  27. FormFieldValidator<T>? validator,
  28. TextStyle? style,
  29. 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,
});