remoteConfigClearValues static method

  1. @Deprecated('This function is deprecated, please use "remoteConfigClearAllValues" instead')
Future<String?> remoteConfigClearValues(
  1. dynamic callback(
    1. String?
    )
)

Clear all remote config values. returns the error or success message

Implementation

@Deprecated('This function is deprecated, please use "remoteConfigClearAllValues" instead')
static Future<String?> remoteConfigClearValues(Function(String?) callback) async {
  if (!_instance._countlyState.isInitialized) {
    String message = '"initWithConfig" must be called before "remoteConfigClearValues"';
    log('remoteConfigClearValues, $message', logLevel: LogLevel.ERROR);
    return message;
  }
  log('Calling "remoteConfigClearValues"');
  final String? result = await _channel.invokeMethod('remoteConfigClearValues');

  callback(result);
  return result;
}