NativeMenuItem.withIcon constructor

NativeMenuItem.withIcon({
  1. required String title,
  2. String? action,
  3. bool isEnable = true,
  4. required String? icon,
  5. NativeMenu? subMenu,
})

Implementation

NativeMenuItem.withIcon({required this.title, this.action, this.isEnable = true, required this.icon, this.subMenu})
    : type = MenuItemType.menu,
      rawIcon = null;