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.
1 parent 58a4de3 commit b6efbffCopy full SHA for b6efbff
src/resources/dart-tips/dart-tips-6.md
@@ -165,10 +165,10 @@ String shout(String msg, {int exclamations}) {
165
}
166
{% endprettify %}
167
168
-To briefly recap, there are two ways to define optional parameters.
+To briefly recap, there are two ways to define optional parameters:
169
170
-* [ ] for optional positional parameters
171
-* { } for optional named parameters
+* `[` `]` for optional positional parameters
+* `{` `}` for optional named parameters
172
173
There's yet another benefit from the use of optional parameters. But first, the
174
setup: Sometimes, there's an obvious or default value for a parameter. Only on
0 commit comments