Skip to content

Commit

Permalink
fix(neon_notifications): Expose Bloc using public interface
Browse files Browse the repository at this point in the history
Signed-off-by: provokateurin <kate@provokateurin.de>
  • Loading branch information
provokateurin committed Jun 4, 2024
1 parent 969abb1 commit 677bb1a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/neon/neon_notifications/lib/neon_notifications.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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<NotificationsBloc, NotificationsOptions>
class NotificationsApp extends AppImplementation<NotificationsBlocInterface, NotificationsOptions>
implements
// ignore: avoid_implementing_value_types
NotificationsAppInterface<NotificationsBloc, NotificationsOptions> {
NotificationsAppInterface<NotificationsBlocInterface, NotificationsOptions> {
NotificationsApp();

@override
Expand All @@ -33,7 +33,7 @@ class NotificationsApp extends AppImplementation<NotificationsBloc, Notification
late final NotificationsOptions options = NotificationsOptions(storage);

@override
NotificationsBloc buildBloc(Account account) => NotificationsBloc(
NotificationsBlocInterface buildBloc(Account account) => NotificationsBloc(
account: account,
);

Expand All @@ -44,5 +44,5 @@ class NotificationsApp extends AppImplementation<NotificationsBloc, Notification
final RouteBase route = $notificationsAppRoute;

@override
BehaviorSubject<int> getUnreadCounter(NotificationsBloc bloc) => bloc.unreadCounter;
BehaviorSubject<int> getUnreadCounter(NotificationsBlocInterface bloc) => (bloc as NotificationsBloc).unreadCounter;
}

0 comments on commit 677bb1a

Please sign in to comment.