ProviderAwareDropdownButtonFormField<T> constructor

const ProviderAwareDropdownButtonFormField<T>({
  1. Key? key,
  2. List<DropdownMenuItem<T>>? items,
  3. List<DropdownMenuItem<T>> itemBuilder(
    1. BuildContext
    )?,
  4. T? initialValue,
  5. Widget? hint,
  6. Widget? disabledHint,
  7. required void onChanged(
    1. T?
    )?,
  8. void onTap()?,
  9. int elevation = 8,
  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? focusColor,
  19. FocusNode? focusNode,
  20. bool autofocus = false,
  21. Color? dropdownColor,
  22. double? menuMaxHeight,
  23. bool? enableFeedback,
  24. AlignmentGeometry alignment = AlignmentDirectional.centerStart,
  25. BorderRadius? borderRadius,
  26. InputDecoration? decoration,
  27. FormFieldSetter<T>? onSaved,
  28. FormFieldValidator<T>? validator,
  29. AutovalidateMode? autovalidateMode,
  30. EdgeInsetsGeometry? padding,
})

Implementation

const ProviderAwareDropdownButtonFormField({
  super.key,
  this.items,
  this.itemBuilder,
  this.initialValue,
  this.hint,
  this.disabledHint,
  required this.onChanged,
  this.onTap,
  this.elevation = 8,
  this.style,
  this.icon,
  this.iconDisabledColor,
  this.iconEnabledColor,
  this.iconSize = 24.0,
  this.isDense = false,
  this.isExpanded = false,
  this.itemHeight,
  this.focusColor,
  this.focusNode,
  this.autofocus = false,
  this.dropdownColor,
  this.menuMaxHeight,
  this.enableFeedback,
  this.alignment = AlignmentDirectional.centerStart,
  this.borderRadius,
  this.decoration,
  this.onSaved,
  this.validator,
  this.autovalidateMode,
  this.padding,
}) : assert(
       items != null || itemBuilder != null,
       'Either items or itemBuilder must be provided',
     );