should method

bool should(
  1. MenuType type
)

Implementation

bool should(MenuType type) =>
    (type == MenuType.leftDrawerMenu) && availableInLeftDrawer ||
    (type == MenuType.rightDrawerMenu) && availableInRightDrawer ||
    (type == MenuType.bottomNavBarMenu) && availableInHomeMenu ||
    (type == MenuType.appBarMenu) && availableInAppBar;