Skip to content

Commit 6091eef

Browse files
authored
Specify primary constructors (#3023)
This is a proposed feature specification that specifies the feature _primary constructors_. A primary constructor is a syntactically concise notation for a constructor. For instance: ```dart // Using current Dart. class Point { final int x; final int y; const Point(this.x, [this.y = 0]); } // Using a primary constructor. class const Point(int x, [int y = 0]); ```
1 parent 913b81e commit 6091eef

File tree

64 files changed

+2153
-2
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

64 files changed

+2153
-2
lines changed

LICENSE

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ The following license applies to all parts of this repository.
22
See https://github.com/dart-lang/sdk/blob/main/LICENSE for the license
33
of the Dart language implementation.
44

5-
Copyright 2018, the Dart project authors.
5+
Copyright 2018, the Dart project authors.
66

77
Redistribution and use in source and binary forms, with or without
88
modification, are permitted provided that the following conditions are
@@ -16,7 +16,7 @@ met:
1616
* Neither the name of Google LLC nor the names of its
1717
contributors may be used to endorse or promote products derived
1818
from this software without specific prior written permission.
19-
19+
2020
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
2121
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
2222
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR

0 commit comments

Comments
 (0)