getAppConfig static method

Future<AppConfig> getAppConfig()

Implementation

static Future<AppConfig> getAppConfig() async {
  try {
    return await SupabaseQuery.getById<AppConfig>('prod');
  } catch (error) {
    throw Exception("Could not load app config. Check if the database is "
        "running and app_config table is properly set up.");
  }
}