setConfigSettings method

Future<void> setConfigSettings(
  1. RemoteConfigSettings remoteConfigSettings
)

Sets the RemoteConfigSettings for the current instance.

Implementation

Future<void> setConfigSettings(RemoteConfigSettings remoteConfigSettings) {
  assert(!remoteConfigSettings.fetchTimeout.isNegative);
  assert(!remoteConfigSettings.minimumFetchInterval.isNegative);
  // To be consistent with iOS fetchTimeout is set to the default
  // 1 minute (60 seconds) if an attempt is made to set it to zero seconds.
  if (remoteConfigSettings.fetchTimeout.inSeconds == 0) {
    remoteConfigSettings.fetchTimeout = const Duration(seconds: 60);
  }
  return _delegate.setConfigSettings(remoteConfigSettings);
}