diff --git a/lib/helpers/shown_notifications_helper.dart b/lib/helpers/shown_notifications_helper.dart index 2957fdf..17d3975 100644 --- a/lib/helpers/shown_notifications_helper.dart +++ b/lib/helpers/shown_notifications_helper.dart @@ -16,7 +16,7 @@ class ShownNotificationsHelper(final Ref ref) { final shown = IMap>.fromJson( json.decode(await prefs.getString(_key) ?? "{}"), (threadId) => threadId as String, - (ids) => ISet.fromJson(ids, (id) => id as int), + (ids) => .fromJson(ids, (id) => id as int), ); await prefs.setString( @@ -33,7 +33,7 @@ class ShownNotificationsHelper(final Ref ref) { (shown) => shown.update( threadId, (ids) => ids.add(id), - ifAbsent: () => ISet({id}), + ifAbsent: () => .new({id}), ), );