getInt static method

int getInt(
  1. String key
)

Implementation

static int getInt(String key) {
  final cached = _cache[key];
  if (cached is int) return cached;
  final value = prefs!.getInt(key) ?? 0;
  _cache[key] = value;
  return value;
}