Open
Description
Filing a tracking issue for expanding the feature-set of @pragma('vm:deeply-immutable')
.
https://dart-review.googlesource.com/c/sdk/+/354902 Introduces basic functionality.
- Deeply immutable classes can have fields which are deeply immutable.
- Deeply immutable classes can extend other deeply immutable classes.
- Allow type parameter types in fields of deeply immutable classes.
Not covered in this CL, but could be covered:
- Allow using deeply immutable classes across libraries.
- Allow mixin in deeply immutable classes. (Requires allowing deeply immutable classes across libraries,
mixin
s can't befinal
orsealed
.) - Allow record types in fields of deeply immutable classes.