获取整数
int? getInt(String key, {int defValue = 0}) { final value = _prefs?.getInt(key) ?? defValue; logger.i('getInt key:$key'); return value; }