Cannot use record
as default value for optional parameter of class constructor
#53321
Labels
closed-duplicate
Closed in favor of an existing report
Uh oh!
There was an error while loading. Please reload this page.
Cannot use
record
as default value for optional parameter of class constructor.Static analysis shows error non_constant_default_value. When I try to start, I get several errors:
Example code (DartPad):
Functionally similar working code that doesn't use record (DartPad):
Dart version used:
DartPad stable channel (Based on Flutter 3.13.0 Dart SDK 3.1.0)
The text was updated successfully, but these errors were encountered: