From f6d379ce4ebdc1f57971f3a1c149bb94cf7b0ce7 Mon Sep 17 00:00:00 2001 From: Nikolas Rimikis Date: Tue, 13 Jun 2023 17:30:16 +0200 Subject: [PATCH] neon: improve typesafety of AppsBloc.getAppBloc --- packages/neon/neon/lib/src/blocs/apps.dart | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/neon/neon/lib/src/blocs/apps.dart b/packages/neon/neon/lib/src/blocs/apps.dart index 223b8c3b..9257b061 100644 --- a/packages/neon/neon/lib/src/blocs/apps.dart +++ b/packages/neon/neon/lib/src/blocs/apps.dart @@ -138,7 +138,8 @@ class AppsBloc extends InteractiveBloc implements AppsBlocEvents, AppsBlocStates } } - T getAppBloc(final AppImplementation appImplementation) => appImplementation.getBloc(_account) as T; + T getAppBloc(final AppImplementation appImplementation) => + appImplementation.getBloc(_account); List get appBlocProviders => _allAppImplementations.map((final appImplementation) => appImplementation.blocProvider).toList();