RuiToolbarItem constructor
RuiToolbarItem({
- required IconData icon,
- String? label,
- VoidCallback? onPressed,
- dynamic onMenuItemSelected(
- dynamic
- Widget? dropdownPanel,
Implementation
RuiToolbarItem({
required this.icon,
this.label,
this.onPressed,
this.menuItems,
this.onMenuItemSelected,
this.dropdownPanel, // 新增参数
});