File tree 1 file changed +7
-1
lines changed
1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -342,11 +342,16 @@ constraint][language version] lower bound to 3.0 or greater (`sdk: '^3.0.0'`).
342
342
declaration. If you haven't upgraded a class to Dart 3.0, you can still use it
343
343
as a mixin.
344
344
345
- - ** Breaking Change ** [ #50902 ] [ ] : Dart reports a compile-time error if a
345
+ - ** Breaking change ** [ #50902 ] [ ] : Dart reports a compile-time error if a
346
346
` continue ` statement targets a [ label] that is not a loop (` for ` , ` do ` and
347
347
` while ` statements) or a ` switch ` member. Fix this by changing the ` continue `
348
348
to target a valid labeled statement.
349
349
350
+ - ** Breaking change** [ language/#2357 ] [ ] : Starting in language version 3.0,
351
+ Dart reports a compile-time error if a colon (` : ` ) is used as the
352
+ separator before the default value of an optional named parameter.
353
+ Fix this by changing the colon (` : ` ) to an equal sign (` = ` ).
354
+
350
355
[ records ] : https://dart.dev/language/records
351
356
[ tuples ] : https://en.wikipedia.org/wiki/Tuple
352
357
[ pattern matching ] : https://dart.dev/language/patterns
@@ -361,6 +366,7 @@ constraint][language version] lower bound to 3.0 or greater (`sdk: '^3.0.0'`).
361
366
[ mixin class ] : https://dart.dev/language/mixins#class-mixin-or-mixin-class
362
367
[ #50902 ] : https://github.com/dart-lang/sdk/issues/50902
363
368
[ label ] : https://dart.dev/language/branches#switch
369
+ [ language/#2357 ] [ ] : https://github.com/dart-lang/language/issues/2357
364
370
365
371
### Libraries
366
372
You can’t perform that action at this time.
0 commit comments