sdk
sdk copied to clipboard
The Dart SDK, including the VM, dart2js, core libraries, and more.
An `InvalidType` should simultaneously be both nullable and non-nullable. The following produces two diagnostics: ```dart void f(String s) { if (s.len case var len?) { print(len); } } ``` The...
The following code is allowed on dart2js and the VM, but fails on DDC and dart2wasm: ```dart class C { late final int? _finalWithInitializer = 0; late final int? _finalWithoutInitializer;...
`PropertyAccessorElementImpl`: optimize `name` getter to avoid calls to `considerCanonicalizeString`
The `name` getter is a hotspot and shouldn't resolve `String` canonicalization for each call. --- - [✅] I’ve reviewed the contributor guide and applied the relevant portions to this PR.
I have a file (an ABI file) with a list of `Map` I load the file in a List? abi; I would like to convert `toJS` all elements in the...
Imagine we have a library as follows: ```dart /// Long and extensive documentation about this library library foo; // Good stuff in this library. ``` I would now like to...
Something like this should work: ```dart /// @docImport 'dart:io' as io; library; /// You can use [io.Stdin] to... void foo() { // intentionally left blank } ```
Hello Dart team! Currently, the easiest way to obtain the compiled architecture of an app is to call to `Abi.current().toString()` and then parse the `String`, e.g. ```dart final abi =...
Hello After updating to Flutter 3.24.0, which uses Dart 3.5, I now get the error “Legacy nullability is not supported. The error is also present with Flutter 3.25.0-1.0.pre.84 and Dart...
The [`JsonCodable`](https://dart.dev/language/macros#the-jsoncodable-macro) macro is a colossal step in the right direction, however it lacks an important feature which should be considered. Often, when working with serialized data (in particular, data...
To make dynamic linking between native assets possible (a dll opening another dll at runtime because they have been linked at build) on Windows, we need to specify where the...