Skip to content

Commit 65caefe

Browse files
authored
Tweak Records class description (#2437)
Opens up the opportunity to have static members, and is precise that there are no exposed constructors ("members inherited from `Object`" could be read as ambiguous about a default constructor).
1 parent 42d9919 commit 65caefe

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

working/0546-patterns/records-feature-specification.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,10 +92,12 @@ These primitive types are added to `dart:core`:
9292

9393
### The `Record` class
9494

95-
A built-in class `Record` with no members except those inherited from `Object`.
95+
A built-in class `Record` with no instance members except those inherited
96+
from `Object`, and which exposes no constructors.
9697
All record types are a subtype of this class. This type cannot be constructed,
97-
extended, mixed in, or implemented by user-defined classes. *This is similar to
98-
how the `Function` class is the superclass for all function types.*
98+
extended, mixed in, or implemented by user-defined classes.
99+
*This is similar to how the `Function` class is the superclass
100+
for all function types.*
99101

100102
## Syntax
101103

0 commit comments

Comments
 (0)