sdk
sdk copied to clipboard
The Dart SDK, including the VM, dart2js, core libraries, and more.
### Steps to reproduce Small repro: ```dart Future foo() async { return null; } Future bar() async { var str = await foo(); return str.length; } ``` #### What did...
This is a little strange and doesn't reproduce consistently, but I'll try to provide as much details as I have. In IntelliJ I have a workspace that has a bunch...
First noticed here as it turned the pkg-linux-debug bot red: https://logs.chromium.org/logs/dart/buildbucket/cr-buildbucket/8807002776779726001/+/u/test_results/stdout.
The [`fix_data.yaml` file in flutter/flutter](https://github.com/flutter/flutter/blob/master/packages/flutter/lib/fix_data.yaml) is growing, it is (at time of writing) about 4000 lines long. I am looking into writing rules to migrate to the [new button universe](https://docs.flutter.dev/release/breaking-changes/buttons),...
Bad state: Unrelated types: class Object and abstract class FutureOr in (readData ?? (req, res) {if (req.bodyAsObject is! Data) {throw GalileoHttpException.badRequest(message: 'Invalid request body. Expected $Data; found ${req.bodyAsObject} instead.');} else...
``` $ dart/migrate ... Building tool...done. ... Analyzing project... [----------------------------------------------------------------------------------------------------------------------------------------|]Warning: package has unmigrated dependencies. Continuing due to the presence of `--skip-import-check`. To see a complete list of the unmigrated dependencies,...
When hot reloading I get this error: ``` lib/main.dart:18:27: Error: The argument type 'void Function(USBDevice)' can't be assigned to the parameter type 'void Function(JavaScriptObject)'. - 'USBDevice' is from 'package:js_demonstration/other.dart' ('lib/other.dart')....
| A | C | |---|---| |  |  | ``` [√] Flutter (Channel stable, 3.0.5, on Microsoft Windows [版本 10.0.22000.795], locale zh-CN) • Flutter version 3.0.5 at X:\SDK\flutter...
The goal is to get more actionable information from users that are experiencing problems with performance.
An internal customer ran into a situation like this: Original code (pre-null-safety): ```dart f(Map m, String k) { var s = ''; if (m.containsKey(k)) { s = m[k]; ... }...