存储sp中key的int值
static Future<bool> putInt(String? key, int? value) async { if (key == null || key.isEmpty || value == null) { return false; } return await _preferences.setInt(key, value); }