Closed
Description
This is the feature proposal for request #54. It improved the support for constant expressions, for example the ability to explicitly cast a value in a const expression:
class MyClass {
final String value;
const MyClass(Object o) : value = (o is! String) ? "$o" : (o as String);
}
The feature specification is:
https://github.com/dart-lang/language/blob/master/accepted/2.5/constant-update-2018/feature-specification.md
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Done