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) {
      final bounds = configBounds['retryAttemptsCountMax']!;
      return remoteValue.clamp(bounds.min, bounds.max);
    } else {
      return defaultRemoteConfig['retryAttemptsCountMax'] as int;
    }
  }
}