@@ -352,7 +352,6 @@ class TestZulipBinding extends ZulipBinding {
352352 _pickFilesCalls = null ;
353353 return result ?? [];
354354 }
355-
356355 List <({
357356 bool ? allowMultiple,
358357 bool ? withReadStream,
@@ -394,7 +393,6 @@ class TestZulipBinding extends ZulipBinding {
394393 _pickImageCalls = null ;
395394 return result ?? [];
396395 }
397-
398396 List <({
399397 ImageSource source,
400398 bool requestFullMetadata,
@@ -673,7 +671,6 @@ class FakeAndroidNotificationHostApi implements AndroidNotificationHostApi {
673671 _notifyCalls = [];
674672 return result;
675673 }
676-
677674 List <AndroidNotificationHostApiNotifyCall > _notifyCalls = [];
678675
679676 Iterable <StatusBarNotification > get activeNotifications => _activeNotifications.values;
@@ -730,43 +727,38 @@ class FakeAndroidNotificationHostApi implements AndroidNotificationHostApi {
730727 tag: tag);
731728
732729 _activeNotificationsMessagingStyle[tag] = messagingStyle == null
733- ? null
734- : MessagingStyle (
735- user: messagingStyle.user,
736- conversationTitle: messagingStyle.conversationTitle,
737- isGroupConversation: messagingStyle.isGroupConversation,
738- messages: messagingStyle.messages.map ((message) =>
739- MessagingStyleMessage (
740- text: message.text,
741- timestampMs: message.timestampMs,
742- person: Person (
743- key: message.person.key,
744- name: message.person.name,
745- iconBitmap: null )),
746- ).toList (growable: false ));
730+ ? null
731+ : MessagingStyle (
732+ user: messagingStyle.user,
733+ conversationTitle: messagingStyle.conversationTitle,
734+ isGroupConversation: messagingStyle.isGroupConversation,
735+ messages: messagingStyle.messages.map ((message) =>
736+ MessagingStyleMessage (
737+ text: message.text,
738+ timestampMs: message.timestampMs,
739+ person: Person (
740+ key: message.person.key,
741+ name: message.person.name,
742+ iconBitmap: null )),
743+ ).toList (growable: false ));
747744 }
748745 }
749746
750747 @override
751- Future <MessagingStyle ?> getActiveNotificationMessagingStyleByTag (
752- String tag,
753- ) async => _activeNotificationsMessagingStyle[tag];
748+ Future <MessagingStyle ?> getActiveNotificationMessagingStyleByTag (String tag) async =>
749+ _activeNotificationsMessagingStyle[tag];
754750
755751 @override
756- Future <List <StatusBarNotification >> getActiveNotifications ({
757- required List <String > desiredExtras,
758- }) async {
759- return _activeNotifications.values
760- .map ((statusNotif) {
761- final notificationExtras = statusNotif.notification.extras;
762- statusNotif.notification.extras = {
763- for (final key in desiredExtras)
764- if (notificationExtras[key] != null )
765- key: notificationExtras[key]! ,
766- };
767- return statusNotif;
768- })
769- .toList (growable: false );
752+ Future <List <StatusBarNotification >> getActiveNotifications ({required List <String > desiredExtras}) async {
753+ return _activeNotifications.values.map ((statusNotif) {
754+ final notificationExtras = statusNotif.notification.extras;
755+ statusNotif.notification.extras = {
756+ for (final key in desiredExtras)
757+ if (notificationExtras[key] != null )
758+ key: notificationExtras[key]! ,
759+ };
760+ return statusNotif;
761+ }).toList (growable: false );
770762 }
771763
772764 @override
0 commit comments