Skip to content

Commit c22afd4

Browse files
Update outdated mention that factory constructors can return null.
1 parent cd5c543 commit c22afd4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/content/codelabs/dart-cheatsheet.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1728,7 +1728,7 @@ void main() {
17281728
## Factory constructors
17291729

17301730
Dart supports factory constructors,
1731-
which can return subtypes or even null.
1731+
which can return instances of a class or even subtypes.
17321732
To create a factory constructor, use the `factory` keyword:
17331733

17341734
<?code-excerpt "misc/lib/cheatsheet/factory_constructors.dart"?>

0 commit comments

Comments
 (0)