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