File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -28,9 +28,8 @@ class StringReducer extends ReducerClass<String> {
28
28
29
29
class IncrementMiddleware extends MiddlewareClass <String > {
30
30
int counter = 0 ;
31
- final _invocationsController =
32
- StreamController <String >.broadcast (sync : true );
33
-
31
+ final _invocationsController = StreamController <String >.broadcast (sync : true );
32
+
34
33
Stream <String > get invocations => _invocationsController.stream;
35
34
36
35
@override
@@ -73,18 +72,13 @@ class ExtraActionIfDispatchedIncrementMiddleware extends IncrementMiddleware {
73
72
}
74
73
75
74
class PassThroughMiddleware <State > implements MiddlewareClass <State > {
76
-
77
75
@override
78
76
dynamic call (Store <State > store, dynamic action, NextDispatcher next) {
79
77
return next (action);
80
78
}
81
-
82
79
}
83
80
84
- typedef void ThunkAction <State >(Store <State > store);
85
-
86
81
class ThunkMiddleware <State > implements MiddlewareClass <State > {
87
-
88
82
@override
89
83
dynamic call (Store <State > store, dynamic action, NextDispatcher next) {
90
84
if (action is Function ) {
You can’t perform that action at this time.
0 commit comments