Skip to content

Commit 01f5ad5

Browse files
authored
Update test_data.dart
1 parent eec2ecc commit 01f5ad5

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

test/test_data.dart

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,8 @@ class StringReducer extends ReducerClass<String> {
2828

2929
class IncrementMiddleware extends MiddlewareClass<String> {
3030
int counter = 0;
31-
final _invocationsController =
32-
StreamController<String>.broadcast(sync: true);
33-
31+
final _invocationsController = StreamController<String>.broadcast(sync: true);
32+
3433
Stream<String> get invocations => _invocationsController.stream;
3534

3635
@override
@@ -73,18 +72,13 @@ class ExtraActionIfDispatchedIncrementMiddleware extends IncrementMiddleware {
7372
}
7473

7574
class PassThroughMiddleware<State> implements MiddlewareClass<State> {
76-
7775
@override
7876
dynamic call(Store<State> store, dynamic action, NextDispatcher next) {
7977
return next(action);
8078
}
81-
8279
}
8380

84-
typedef void ThunkAction<State>(Store<State> store);
85-
8681
class ThunkMiddleware<State> implements MiddlewareClass<State> {
87-
8882
@override
8983
dynamic call(Store<State> store, dynamic action, NextDispatcher next) {
9084
if (action is Function) {

0 commit comments

Comments
 (0)