Reproducible on dartpad stable (Based on Dart SDK 3.12.2 and Flutter SDK 3.44.8) and main (Based on Dart SDK 3.14.0-10.0.dev and Flutter SDK 3.47.0-1.0.pre-43) channels:
abstract class Base {
String get id;
set id(String value);
}
class Broken extends Base {
@override
final String id;
Broken(this.id);
@override
set id(String value) {
throw UnsupportedError('immutable');
}
}
void main() {
print(Broken('A').id); // VM: A — dart2js: A — DDC: null
}
Related: #29914 and #46867
Reproducible on dartpad stable
(Based on Dart SDK 3.12.2 and Flutter SDK 3.44.8)and main(Based on Dart SDK 3.14.0-10.0.dev and Flutter SDK 3.47.0-1.0.pre-43)channels:Related: #29914 and #46867