ProviderAwareDropdownButton<T> constructor
const
ProviderAwareDropdownButton<T> ({
- Key? key,
- List<
DropdownMenuItem< ? items,T> > - List<
DropdownMenuItem< itemBuilder()?,T> > - T? value,
- Widget? hint,
- Widget? disabledHint,
- required void onChanged(
- T?
- void onTap()?,
- int elevation = 8,
- TextStyle? style,
- Widget? underline,
- Widget? icon,
- Color? iconDisabledColor,
- Color? iconEnabledColor,
- double iconSize = 24.0,
- bool isDense = false,
- bool isExpanded = false,
- double? itemHeight,
- Color? focusColor,
- FocusNode? focusNode,
- bool autofocus = false,
- Color? dropdownColor,
- bool? enableFeedback,
- AlignmentGeometry alignment = AlignmentDirectional.centerStart,
- BorderRadius? borderRadius,
- 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',
);