From 2c1ccc4728ecaaae87c8f41e99bc1ef461489628 Mon Sep 17 00:00:00 2001 From: Henry-Hiles Date: Wed, 25 Nov 2026 15:28:51 -0500 Subject: [PATCH] use dot shorthands where possible in notif code --- lib/helpers/shown_notifications_helper.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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}), ), );