Skip to main content

isPresentinSwitchableOrg method

bool isPresentinSwitchableOrg (OrgInfo switchToOrg)

This function checks switchOrg is present in the switchAbleOrg.

params:

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

Implementation

bool isPresentinSwitchableOrg(OrgInfo switchToOrg) {
var isPresent = false;
for (final OrgInfo orgs in switchAbleOrg) {
if (orgs.id == switchToOrg.id) {
isPresent = true;
}
}
return isPresent;
}