ProviderAwareDropdownButton<T> constructor

const ProviderAwareDropdownButton<T>({
  1. Key? key,
  2. List<DropdownMenuItem<T>>? items,
  3. List<DropdownMenuItem<T>> itemBuilder(
    1. BuildContext
    )?,
  4. T? value,
  5. Widget? hint,
  6. Widget? disabledHint,
  7. required void onChanged(
    1. T?
    )?,
  8. void onTap()?,
  9. int elevation = 8,
  10. TextStyle? style,
  11. Widget? underline,
  12. Widget? icon,
  13. Color? iconDisabledColor,
  14. Color? iconEnabledColor,
  15. double iconSize = 24.0,
  16. bool isDense = false,
  17. bool isExpanded = false,
  18. double? itemHeight,
  19. Color? focusColor,
  20. FocusNode? focusNode,
  21. bool autofocus = false,
  22. Color? dropdownColor,
  23. double? menuMaxHeight,
  24. bool? enableFeedback,
  25. AlignmentGeometry alignment = AlignmentDirectional.centerStart,
  26. BorderRadius? borderRadius,
  27. EdgeInsetsGeometry? padding,
})

Implementation

const ProviderAwareDropdownButton({
  super.key,
  this.items,
  this.itemBuilder,
  this.value,
  this.hint,
  this.disabledHint,
  required this.onChanged,
  this.onTap,
  this.elevation = 8,
  this.style,
  this.underline,
  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.padding,
}) : assert(
       items != null || itemBuilder != null,
       'Either items or itemBuilder must be provided',
     );