@override Future<int?> getInt(String key) async { final map = await read(); return map[key] as int?; }