We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8b5a67c + f839da7 commit e2f0ed8Copy full SHA for e2f0ed8
doc/basics/reducers.md
@@ -32,9 +32,9 @@ I can define a simple reducer function as follows:
32
33
```dart
34
void counterReducer(App prevState, Action<dynamic> action, AppBuilder builder) {
35
- if (action.name == AppActionNames.increment.name)
+ if (action.name == AppActionsNames.increment.name)
36
builder.count += action.payload as int;
37
- else if (action.name == AppActionNames.decrement.name)
+ else if (action.name == AppActionsNames.decrement.name)
38
builder.count -= action.payload as int;
39
}
40
```
0 commit comments