File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
patterns/builder/color_text_format Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -8,15 +8,13 @@ https://refactoring.guru/design-patterns/builder
88Using different text formats.
99
1010### Class diagram
11- ![ image] ( https://user-images.githubusercontent.com/8049534/152780645-4eed27fc-a483-432e-99b0-4a77f2adbd5d .png )
11+ ![ image] ( https://user-images.githubusercontent.com/8049534/165747411-75d587d4-aa16-4a14-a16d-52f3fa461a11 .png )
1212
1313### Client code:
1414``` dart
1515main() {
1616 final reader = ColorTextReader(
17- text: 'I love looking at the blue sky, '
18- 'eating red apples, '
19- 'sitting on the green grass.',
17+ text: 'I love looking at the blue sky, eating red apples and sitting on the green grass.',
2018 );
2119
2220 final html = reader.convert(HtmlConverter());
You can’t perform that action at this time.
0 commit comments