getInt method

int getInt(
  1. String key, {
  2. int defVal = 0,
})

Gets the value for a given key as an int. Returns defVal if the key does not exist.

Implementation

int getInt(String key, {int defVal = 0}) {
  final k = _getKey(key);
  if (k == null) return defVal;
  return _remoteConfig.getInt(k);
}