implemented user backups

This commit is contained in:
Fabian Freund
2025-12-18 18:38:06 +01:00
parent 2f1ecd50e1
commit 018915298a
19 changed files with 1172 additions and 78 deletions
+13
View File
@@ -0,0 +1,13 @@
extension UniqueItems<T> on Iterable<T> {
Iterable<T> findDuplicates() sync* {
final seen = <T>{};
for (final item in this) {
if (seen.contains(item)) {
yield item;
} else {
seen.add(item);
}
}
}
}