@@ -88,7 +88,7 @@ class ReduxStoreStreamTransformer<A, S> extends StreamTransformerBase<A, S> {
88
88
Stream <S > bind (Stream <A > stream) {
89
89
late StreamController <S > controller;
90
90
List <StreamSubscription <dynamic >>? subscriptions;
91
- StreamController <WrapperAction < A > >? _actionController;
91
+ StreamController <WrapperAction >? _actionController;
92
92
93
93
void onListen () {
94
94
S state;
@@ -101,7 +101,7 @@ class ReduxStoreStreamTransformer<A, S> extends StreamTransformerBase<A, S> {
101
101
return ;
102
102
}
103
103
104
- void onDataActually (WrapperAction < A > wrapper) {
104
+ void onDataActually (WrapperAction wrapper) {
105
105
final type = wrapper.type;
106
106
final currentState = state;
107
107
@@ -114,7 +114,7 @@ class ReduxStoreStreamTransformer<A, S> extends StreamTransformerBase<A, S> {
114
114
return controller.add (currentState);
115
115
}
116
116
117
- final action = wrapper.action;
117
+ final action = wrapper.action < A >() ;
118
118
try {
119
119
final newState = _reducer (currentState, action);
120
120
controller.add (newState);
@@ -144,7 +144,7 @@ class ReduxStoreStreamTransformer<A, S> extends StreamTransformerBase<A, S> {
144
144
}
145
145
146
146
final actionController =
147
- _actionController = StreamController <WrapperAction < A > >.broadcast ();
147
+ _actionController = StreamController <WrapperAction >.broadcast ();
148
148
149
149
// Call reducer on each action.
150
150
final subscriptionActionController =
@@ -163,7 +163,7 @@ class ReduxStoreStreamTransformer<A, S> extends StreamTransformerBase<A, S> {
163
163
164
164
final getState = () => state;
165
165
final actionStream = actionController.stream
166
- .map ((wrapper) => wrapper.action)
166
+ .map ((wrapper) => wrapper.action < A >() )
167
167
.asBroadcastStream (onCancel: (s) => s.cancel ());
168
168
169
169
subscriptions = [
@@ -205,7 +205,7 @@ class ReduxStoreStreamTransformer<A, S> extends StreamTransformerBase<A, S> {
205
205
}
206
206
207
207
Iterable <StreamSubscription <dynamic >> _listenSideEffects (
208
- StreamController <WrapperAction < A > > actionController,
208
+ StreamController <WrapperAction > actionController,
209
209
GetState <S > getState,
210
210
StreamController <S > stateController,
211
211
Stream <A > actionStream,
0 commit comments