RuiToolbarItem constructor

RuiToolbarItem({
  1. required IconData icon,
  2. String? label,
  3. VoidCallback? onPressed,
  4. List<PopupMenuItem>? menuItems,
  5. dynamic onMenuItemSelected(
    1. dynamic
    )?,
  6. Widget? dropdownPanel,
})

Implementation

RuiToolbarItem({
  required this.icon,
  this.label,
  this.onPressed,
  this.menuItems,
  this.onMenuItemSelected,
  this.dropdownPanel, // 新增参数
});