PrefDropdown<T> constructor

const PrefDropdown<T>({
  1. Key? key,
  2. required List<DropdownMenuItem<T>> items,
  3. required String pref,
  4. AlignmentGeometry alignment = AlignmentDirectional.centerStart,
  5. bool autofocus = false,
  6. BorderRadius? borderRadius,
  7. bool? disabled,
  8. Color? dropdownColor,
  9. int elevation = 8,
  10. bool? enableFeedback,
  11. Color? focusColor,
  12. FocusNode? focusNode,
  13. bool fullWidth = true,
  14. Widget? icon,
  15. Color? iconDisabledColor,
  16. Color? iconEnabledColor,
  17. double iconSize = 24.0,
  18. bool isDense = false,
  19. double? itemHeight = kMinInteractiveDimension,
  20. double? menuMaxHeight,
  21. ValueChanged<T?>? onChange,
  22. TextStyle? style,
  23. Widget? subtitle,
  24. Widget? title,
  25. Widget? underline,
})

create a Dropdown selection

Implementation

const PrefDropdown({
  super.key,
  required this.items,
  required this.pref,
  this.alignment = AlignmentDirectional.centerStart,
  this.autofocus = false,
  this.borderRadius,
  this.disabled,
  this.dropdownColor,
  this.elevation = 8,
  this.enableFeedback,
  this.focusColor,
  this.focusNode,
  this.fullWidth = true,
  this.icon,
  this.iconDisabledColor,
  this.iconEnabledColor,
  this.iconSize = 24.0,
  this.isDense = false,
  this.itemHeight = kMinInteractiveDimension,
  this.menuMaxHeight,
  this.onChange,
  this.style,
  this.subtitle,
  this.title,
  this.underline,
});