getAppConfig method

Future<AppConfig?> getAppConfig(
  1. String environment,
  2. int index
)

Implementation

Future<AppConfig?> getAppConfig(String environment, int index) async {
  appConfig = await appApi.getAppConfig(environment, index);
  if (appConfig == null) {
    throw Exception("Unable to get app config");
  }
  return appConfig;
}