NZDropDownMenu<T> constructor

const NZDropDownMenu<T>({
  1. Key? key,
  2. required List<NZDropDownMenuItem<T>> items,
  3. T? value,
  4. ValueChanged<T?>? onChanged,
  5. String hint = '请选择',
  6. bool isExpanded = false,
  7. Color? backgroundColor,
  8. Color? textColor,
  9. Color? activeColor,
  10. NZDropDownMenuType type = NZDropDownMenuType.outline,
  11. NZDropDownMenuSize size = NZDropDownMenuSize.medium,
  12. double? borderRadius,
  13. double elevation = 8.0,
  14. double itemHeight = 48.0,
  15. double menuMaxHeight = 300.0,
  16. IconData? icon,
  17. bool showCheckIcon = true,
})

Implementation

const NZDropDownMenu({
  super.key,
  required this.items,
  this.value,
  this.onChanged,
  this.hint = '请选择',
  this.isExpanded = false,
  this.backgroundColor,
  this.textColor,
  this.activeColor,
  this.type = NZDropDownMenuType.outline,
  this.size = NZDropDownMenuSize.medium,
  this.borderRadius,
  this.elevation = 8.0,
  this.itemHeight = 48.0,
  this.menuMaxHeight = 300.0,
  this.icon,
  this.showCheckIcon = true,
});