File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed
null_safety_examples/misc/lib/effective_dart
src/_guides/language/effective-dart Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -84,7 +84,7 @@ void miscDeclAnalyzedButNotTested() {
84
84
void method1 () {}
85
85
86
86
// #docregion ctor
87
- /// To create a point, call [Point()] or use [Point.polar()] to .. .
87
+ /// To create a point from polar coordinates, use [Point.polar()] .
88
88
// #enddocregion ctor
89
89
void method2 () {}
90
90
};
Original file line number Diff line number Diff line change @@ -321,13 +321,12 @@ separated by a dot:
321
321
/// Similar to [ Duration.inDays] , but handles fractional days.
322
322
{% endprettify %}
323
323
324
- The dot syntax can also be used to refer to named constructors. For the unnamed
325
- constructor, put parentheses after the class name:
324
+ The dot syntax can also be used to refer to named constructors:
326
325
327
326
{:.good}
328
327
<? code-excerpt "docs_good.dart (ctor)"?>
329
328
{% prettify dart tag=pre+code %}
330
- /// To create a point, call [ Point() ] or use [ Point.polar()] to .. .
329
+ /// To create a point from polar coordinates, use [ Point.polar()] .
331
330
{% endprettify %}
332
331
333
332
### DO use prose to explain parameters, return values, and exceptions.
You can’t perform that action at this time.
0 commit comments