sdk
sdk copied to clipboard
The Dart SDK, including the VM, dart2js, core libraries, and more.
**Current proposal: https://github.com/dart-lang/sdk/issues/60730#issuecomment-2904942492** What do we promise as layout for `dart build exe`? If we change the directory layout later, we would break users that rely on the results. So...
Results from `measureUserAgentSpecificMemory` API call: memoryUsageInBytes: 6063731579 memoryInGb: 5.647290105931461 These numbers are significantly higher than when calling this API in non-wasm mode (JS). Taking a heap snapshot from chrome DevTools...
OS: mac 15.5 (24F74) Dart SDK version: 3.8.1 (stable) (Wed May 28 00:47:25 2025 -0700) on "macos_arm64" **Background:** I am building a cli app, and attempting to use an external...
Example: ```dart import 'dart:async'; void main() { var f = Future.value(1); var o = f as FutureOr?; for (var b in [true, false]) { if (b) { print(switch (o) {...
Fixed broken link in documentation
```dart class CC { Iterable foo() sync* { yield null; yield {}; } } main() { dynamic c = new CC(); print(c.foo()); } ``` If you leave out the `sync*`...
https://github.com/dart-lang/sdk/issues/60221 describes an issue where the VM Service fails to start. While debugging this, I noticed that the VM does not terminate in that case, which results in tests timing...
When an undefined name appears as a class name in a constructor invocation and the context type is Flutter's `Widget` (such as nested inside another constructor invocation or in a...
For the past year, in all my projects, the analyzer has been regularly hanging. This manifests as: 1. File saving being blocked (as it uses formatting).  2. Broken syntax...
I noticed that an `is` test in our code gave rise to code like this: ``` ;; v5