From 677bb1ad1d9ea2bd8056041122f5a94ef263fb53 Mon Sep 17 00:00:00 2001 From: provokateurin Date: Tue, 4 Jun 2024 19:37:37 +0200 Subject: [PATCH] fix(neon_notifications): Expose Bloc using public interface Signed-off-by: provokateurin --- .../neon/neon_notifications/lib/neon_notifications.dart | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/neon/neon_notifications/lib/neon_notifications.dart b/packages/neon/neon_notifications/lib/neon_notifications.dart index fb480bb44cb..df92fe23b5a 100644 --- a/packages/neon/neon_notifications/lib/neon_notifications.dart +++ b/packages/neon/neon_notifications/lib/neon_notifications.dart @@ -14,10 +14,10 @@ import 'package:neon_notifications/src/routes.dart'; import 'package:nextcloud/nextcloud.dart'; import 'package:rxdart/rxdart.dart'; -class NotificationsApp extends AppImplementation +class NotificationsApp extends AppImplementation implements // ignore: avoid_implementing_value_types - NotificationsAppInterface { + NotificationsAppInterface { NotificationsApp(); @override @@ -33,7 +33,7 @@ class NotificationsApp extends AppImplementation NotificationsBloc( + NotificationsBlocInterface buildBloc(Account account) => NotificationsBloc( account: account, ); @@ -44,5 +44,5 @@ class NotificationsApp extends AppImplementation getUnreadCounter(NotificationsBloc bloc) => bloc.unreadCounter; + BehaviorSubject getUnreadCounter(NotificationsBlocInterface bloc) => (bloc as NotificationsBloc).unreadCounter; }