CustomDropdownButton2 constructor
const
CustomDropdownButton2({
- required String hint,
- required String? value,
- required List<
String> dropdownItems, - required ValueChanged<
String?> ? onChanged, - DropdownButtonBuilder? selectedItemBuilder,
- Alignment? hintAlignment,
- Alignment? valueAlignment,
- double? buttonHeight,
- double? buttonWidth,
- EdgeInsetsGeometry? buttonPadding,
- BoxDecoration? buttonDecoration,
- int? buttonElevation,
- Widget? icon,
- double? iconSize,
- Color? iconEnabledColor,
- Color? iconDisabledColor,
- double? itemHeight,
- EdgeInsetsGeometry? itemPadding,
- double? dropdownHeight,
- double? dropdownWidth,
- EdgeInsetsGeometry? dropdownPadding,
- BoxDecoration? dropdownDecoration,
- int? dropdownElevation,
- Radius? scrollbarRadius,
- double? scrollbarThickness,
- bool? scrollbarAlwaysShow,
- Offset? offset,
- Key? key,
Implementation
const CustomDropdownButton2({
required this.hint,
required this.value,
required this.dropdownItems,
required this.onChanged,
this.selectedItemBuilder,
this.hintAlignment,
this.valueAlignment,
this.buttonHeight,
this.buttonWidth,
this.buttonPadding,
this.buttonDecoration,
this.buttonElevation,
this.icon,
this.iconSize,
this.iconEnabledColor,
this.iconDisabledColor,
this.itemHeight,
this.itemPadding,
this.dropdownHeight,
this.dropdownWidth,
this.dropdownPadding,
this.dropdownDecoration,
this.dropdownElevation,
this.scrollbarRadius,
this.scrollbarThickness,
this.scrollbarAlwaysShow,
this.offset,
Key? key,
}) : super(key: key);