retryAttemptsCountMax property

int get retryAttemptsCountMax

Implementation

static int get retryAttemptsCountMax {
  const envValue = int.fromEnvironment('retryAttemptsCountMax', defaultValue: -1);
  if (envValue != -1) {
    return envValue;
  } else {
    final remoteValue = g<RemoteConfigRepoInt>().getInt('retryAttemptsCountMax');
    if (remoteValue > 0) {
      return remoteValue;
    } else {
      return defaultRemoteConfig['retryAttemptsCountMax'] as int;
    }
  }
}