Skip to content

Commit d46cf2e

Browse files
authored
Merge pull request #62 from ilopX/fix-diagram-three-state
Fix three state diagram.
2 parents 3e5bd42 + 0c08a14 commit d46cf2e

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

patterns/state/three_state/README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ changes. It appears as if the object changed its class.
55
Tutorial: [here](https://refactoring.guru/design-patterns/state).
66

77
### Diagram:
8-
![image](https://user-images.githubusercontent.com/8049534/172000870-a96c6dd2-5b6a-4a64-b3a9-4edb75dd8076.png)
8+
![image](https://user-images.githubusercontent.com/8049534/172001291-8d87a3c8-b694-45c3-bd46-40211cd9ac45.png)
99

1010
### Client code:
1111
```dart
@@ -20,3 +20,11 @@ void main() {
2020
switcher.call(); // call:(4) One
2121
}
2222
```
23+
24+
### Output:
25+
```
26+
call(1): One
27+
call(2): Two
28+
call(3): Three
29+
call(4): One
30+
```

0 commit comments

Comments
 (0)