Skip to main content

isPresentinSwitchableOrg method

[bool] isPresentinSwitchableOrg(

  1. [[OrgInfo] switchToOrg]

)

This function checks switchOrg is present in the switchAbleOrg.

params:

  • switchToOrg: OrgInfo type of organization want to switch into.

returns:

  • bool: returns true if switchToOrg is in switchAbleOrg list.

Implementation

bool isPresentinSwitchableOrg(OrgInfo switchToOrg) 
  1. talawa
  2. custom_drawer_view_model
  3. CustomDrawerViewModel
  4. isPresentinSwitchableOrg method
CustomDrawerViewModel class