getInt method
Retrieves an integer value from Remote Config.
Returns the integer value associated with the key
. If the key is not found,
it returns the optional defaultValue
.
Args: key (String): The key for the Remote Config value. defaultValue (int): The value to return if the key is not found. Defaults to 0.
Returns: int: The value for the key or the default value.
Implementation
int getInt(String key, {int defaultValue = 0}) {
return _remoteConfig.getInt(key);
}