NZDropDownMenu<T> constructor
const
NZDropDownMenu<T> ({
- Key? key,
- required List<
NZDropDownMenuItem< items,T> > - T? value,
- ValueChanged<
T?> ? onChanged, - String hint = '请选择',
- bool isExpanded = false,
- Color? backgroundColor,
- Color? textColor,
- Color? activeColor,
- NZDropDownMenuType type = NZDropDownMenuType.outline,
- NZDropDownMenuSize size = NZDropDownMenuSize.medium,
- double? borderRadius,
- double elevation = 8.0,
- double itemHeight = 48.0,
- IconData? icon,
- 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,
});