Skip to content

Commit 365108f

Browse files
committed
Move description to top.
1 parent 382fb09 commit 365108f

File tree

1 file changed

+6
-5
lines changed
  • patterns/decorator/data_source_decoder

1 file changed

+6
-5
lines changed

patterns/decorator/data_source_decoder/README.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
# Pattern Decorator
22
Decorator is a structural design pattern that lets you attach new behaviors to objects by placing these objects inside special wrapper objects that contain the behaviors.
33

4-
## Diagram:
4+
## Example Description:
5+
https://refactoring.guru/design-patterns/decorator?#pseudocode
6+
7+
### Diagram:
58
![image](https://user-images.githubusercontent.com/8049534/148954932-edc22d7b-becd-4e2f-bae8-d0d8200d8918.png)
69

7-
## Description:
8-
https://refactoring.guru/design-patterns/decorator?#pseudocode
910

10-
## Client code:
11+
### Client code:
1112
```dart
1213
void main() {
1314
final records = 'Name,Salary\nJohn Smith,100000\nSteven Jobs,912000';
@@ -30,7 +31,7 @@ void main() {
3031
}
3132
```
3233

33-
## Output:
34+
**Output:**
3435
```
3536
- Input ----------------
3637
Name,Salary

0 commit comments

Comments
 (0)