DropdownButton constructor
const
DropdownButton({
- Key? key,
- String? hintText,
- String? value,
- required List<
String> items, - ValueChanged<
String?> ? onChanged, - Widget? gap,
- Color? borderColor,
- Color? backgroundColor,
- Color? backgroundColorOnFocus,
- double? borderWidth,
- double? borderRadius,
- double? width,
- double? height,
- EdgeInsets? padding,
- EdgeInsets? margin,
- TextStyle? dropDownTextStyle,
- double? dropDownListWidth,
- double? dropDownListHeight,
Implementation
const DropdownButton({
super.key,
this.hintText,
this.value,
required this.items,
this.onChanged,
this.gap,
this.borderColor,
this.backgroundColor,
this.backgroundColorOnFocus,
this.borderWidth,
this.borderRadius,
this.width,
this.height,
this.padding,
this.margin,
this.dropDownTextStyle,
this.dropDownListWidth,
this.dropDownListHeight,
});