sdk
sdk copied to clipboard
The Dart SDK, including the VM, dart2js, core libraries, and more.
If code uses a private member on a non-`this` object that is supplied through a public API, like: ```dart class MyBox { final T _value; MyBox(T value) : _value =...
Example: ```dart abstract class PartialFoo { int get _foo => 42; // Warning here. } abstract class Foo { int get _foo; T _id(T value); } class ConcreteFoo extends PartialFoo...
Using ``` import 'dart:collection'; void main() { { var list = []; // works list.length = 1; print('Length: ${list.length}'); } { var list = []; // throws list.length = 1;...
When coming from JavaScript/TypeScript, where prettier auto-adds () when formatting, I always fight with Dart analyzer because it complains about my code but it never provides a fix (clicking and...
If you are instantiating a class with multiple parameters, it becomes too slow and error prone. I just want them, 'in order', there. https://user-images.githubusercontent.com/351125/129495633-0bd907fa-ab46-47ee-81ac-edc2065386ea.mov Suggestion: add an "add all parameters"...
I'm working on some improvements to the Flutter engine. The browser has an API that takes a clamped array and creates image data from the array: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8ClampedArray https://developer.mozilla.org/en-US/docs/Web/API/ImageData This pull...
## Description When using Dart macros to generate code, unnecessary import prefixes are being included in the generated code. This issue occurs even when the required library is already imported...
In Dart 3, the introduction of sealed classes is causing an issue with Dart macros. When attempting to use a macro with a sealed class, the generated code includes an...
Hello everyone, I'm currently working on a browser extension using Flutter and have run into an issue with Firefox. When I build my Dart file for the content script, both...
This error is threw very often with different files ## Dart analysis issue Internal error: Bad state: Expected existing element: root::package:CONFIDENTIAL_INFO/domain/models/schedule/schedule_calendar.dart::@unit::package:CONFIDENTIAL_INFO/domain/models/schedule/schedule_calendar.dart ## Version information - Dart SDK 3.5.1 - Dart...