File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -1547,8 +1547,10 @@ class CompileTimeErrorCode extends AnalyzerErrorCode {
15471547 // var l = List.generate(3, (i) => i);
15481548 // ```
15491549 static const CompileTimeErrorCode DEFAULT_LIST_CONSTRUCTOR =
1550- CompileTimeErrorCode ('DEFAULT_LIST_CONSTRUCTOR' ,
1551- "Calling the default 'List' constructor causes an error." ,
1550+ CompileTimeErrorCode (
1551+ 'DEFAULT_LIST_CONSTRUCTOR' ,
1552+ "The default 'List' constructor is not available when null safety is "
1553+ "enabled." ,
15521554 correction: "Try using a list literal, 'List.filled' or "
15531555 "'List.generate'." );
15541556
Original file line number Diff line number Diff line change @@ -1379,7 +1379,7 @@ class C {
13791379
13801380### default_list_constructor
13811381
1382- _ Calling the default 'List' constructor causes an error ._
1382+ _ The default 'List' constructor is not available when null safety is enabled ._
13831383
13841384#### Description
13851385
You can’t perform that action at this time.
0 commit comments