sdk
sdk copied to clipboard
The Dart SDK, including the VM, dart2js, core libraries, and more.
GTM Request - [b/467079096](http://b/467079096) Chat with the GTM team about any social media posts, X posts, YouTube shorts, or anything else that we may want for the feature. - [x]...
Example: ```dart import 'dart:ffi'; void main(List args) { late final List list; final callback = NativeCallable.isolateGroupBound(() { list.add('hey'); }); list = []; callback.nativeFunction.asFunction().call(); print(list); callback.close(); } ``` `late final` variables...
Imo this should not expand to the whole raw definition, it should just be `List` (or at least be configurable in the lsp settings). This issue is related to #39332....
In a Flutter project, write down `log`. The latest stable (3.32.1), and the previous minor (3.29.3) versions show only two results on completion: - `dart:math` and - `dart:developer`.  Now,...
Repro: ```dart enum MyEnum { v(() {}); // ^ const_with_non_constant_argument const MyEnum(Function f); } ``` Message: ``` Arguments of a constant creation must be constant expressions. Try making the argument...
```yaml environment: sdk: '3.10.0-162.1.beta' # Dart SDK version: 3.10.0-162.1.beta (beta) (Mon Sep 1 23:24:50 2025 -0700) on "macos_x64" dependencies: analysis_server_plugin: 0.2.2 ``` when using a visitor that performs async operations,...
Even though https://github.com/dart-lang/sdk/issues/60419 was closed there's still perf issues with record types in maps. ```dart void main() { final strings = [for (int i = 0; i < 1_000_000; ++i)...
Repro: ```dart class A {} T? f(A a) => a.method(); T? g(A a) => a.getter; void h(A a, T? o) => a.setter = o; T? Function() i(A a) => a.methodTearoff;...
Repro: ```dart // other.dart class A {} void f(A a) { switch (a) { case A(value:int other): break; } } // import.dart import 'other.dart'; extension Ext on A { int?...
Dart SDK version: 3.10.3 The following code snippet produces a false positive: ```dart class A { int get _value => 0; set _value(int v) { print('A'); } } extension E...