DropdownButton constructor

const DropdownButton({
  1. Key? key,
  2. String? hintText,
  3. String? value,
  4. required List<String> items,
  5. ValueChanged<String?>? onChanged,
  6. Widget? gap,
  7. Color? borderColor,
  8. Color? backgroundColor,
  9. Color? backgroundColorOnFocus,
  10. double? borderWidth,
  11. double? borderRadius,
  12. double? width,
  13. double? height,
  14. EdgeInsets? padding,
  15. EdgeInsets? margin,
  16. TextStyle? dropDownTextStyle,
  17. double? dropDownListWidth,
  18. 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,
});