fetchConfig method

dynamic fetchConfig()

Implementation

fetchConfig() async {
  try {
    RateExperienceConfig fetchedConfig = await repository.fetchConfig();
    config = fetchedConfig;
    _localEmit(RateExperienceState(RateExpState.configLoaded,
        config: fetchedConfig));
  } catch (e) {
    debugPrint(e.toString());
    _localEmit(RateExperienceState(RateExpState.configLoadFailed));
  }
}