getInt static method

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

get int.

Implementation

static int getInt(String key, {int defValue = 0}) {
  return _prefs.getInt(key) ?? defValue;
}