MVP I
This commit is contained in:
@@ -27,10 +27,4 @@ class WatchedVideosPrefs {
|
||||
final ids = prefs.getStringList(_key(scopeId)) ?? const [];
|
||||
return ids.length;
|
||||
}
|
||||
|
||||
static Future<Set<int>> getWatchedIds(String scopeId) async {
|
||||
final prefs = await SharedPreferences.getInstance();
|
||||
final ids = prefs.getStringList(_key(scopeId)) ?? const [];
|
||||
return ids.map((e) => int.tryParse(e) ?? -1).where((e) => e >= 0).toSet();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user