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 3e5bd42 + 0c08a14 commit d46cf2eCopy full SHA for d46cf2e
patterns/state/three_state/README.md
@@ -5,7 +5,7 @@ changes. It appears as if the object changed its class.
5
Tutorial: [here](https://refactoring.guru/design-patterns/state).
6
7
### Diagram:
8
-
+
9
10
### Client code:
11
```dart
@@ -20,3 +20,11 @@ void main() {
20
switcher.call(); // call:(4) One
21
}
22
```
23
+
24
+### Output:
25
+```
26
+call(1): One
27
+call(2): Two
28
+call(3): Three
29
+call(4): One
30
0 commit comments