PrefDropdown<T> constructor
const
PrefDropdown<T> ({
- Key? key,
- required List<
DropdownMenuItem< items,T> > - required String pref,
- AlignmentGeometry alignment = AlignmentDirectional.centerStart,
- bool autofocus = false,
- BorderRadius? borderRadius,
- bool? disabled,
- Color? dropdownColor,
- int elevation = 8,
- bool? enableFeedback,
- Color? focusColor,
- FocusNode? focusNode,
- bool fullWidth = true,
- Widget? icon,
- Color? iconDisabledColor,
- Color? iconEnabledColor,
- double iconSize = 24.0,
- bool isDense = false,
- double? itemHeight = kMinInteractiveDimension,
- ValueChanged<
T?> ? onChange, - TextStyle? style,
- Widget? subtitle,
- Widget? title,
- 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,
});