switchFlaggedFeaturesEndpoint static method
Implementation
static String switchFlaggedFeaturesEndpoint(AppConfig context) {
switch (context.environment) {
case AppEnvironment.PROD:
return kProdSwitchFlaggedFeaturesEndpoint;
case AppEnvironment.DEMO:
return kDemoSwitchFlaggedFeaturesEndpoint;
case AppEnvironment.E2E:
return ke2eSwitchFlaggedFeaturesEndpoint;
default:
return kTestSwitchFlaggedFeaturesEndpoint;
}
}