It is an error if a final field is not initialized. Bug: https://github.com/dart-lang/sdk/issues/33022 This commit adds an error when a final field is not initialized at all (and there is at least one generative constructor). A later commit will add an error for the case where a field is initialized by some, but not all, generative constructors. A number of classes in the Dart2js and DDC support libraries use uninitialized final fields to indicate getters in the corresponding native classes. This commit adds a temporary whitelist for the affected files, which can be removed when the fields have been replaced by external getters. This is tracked by https://github.com/dart-lang/sdk/issues/33762 Change-Id: I6b5cee230c7cd5554da2b61da7ebddb6b0b9396e Reviewed-on: https://dart-review.googlesource.com/63781 Reviewed-by: Daniel Hillerström <hillerstrom@google.com>
Dart is an open-source, scalable programming language, with robust libraries and runtimes, for building web, server, and mobile apps.
Visit the dartlang.org to learn more about the language, tools, getting started, and more.
Browse pub.dartlang.org for more packages and libraries contributed by the community and the Dart team.
If you want to build Dart yourself, here is a guide to getting the source, preparing your machine to build the SDK, and building.
There are more documents on our wiki.
The easiest way to contribute to Dart is to file issues.
You can also contribute patches, as described in Contributing.