sdk
sdk copied to clipboard
The Dart SDK, including the VM, dart2js, core libraries, and more.
Today I had the first problem of a kind. I have a systemd service run under `www-data` user. I did this multiple times in the past and never failed. Today's...
I need secure UDP connection between server and client both written in Dart. If DTLS can be implemented in `dart:io`, it can prevent developers from implementing a security protocol on...
It seems the ping/pong protocol for websockets are not correctly keeping the connection alive in this example: ```dart import 'dart:io'; import 'dart:isolate'; Future main(List arguments) async { final server =...
Repro: ```dart class Base { Base({required this.propriety}); String propriety; } class Second extends Base { Second({required super.propriety}); } class Third extends Second { Third({required super.propriety}); } ``` If you rename...
Given this code snippet: ```dart import 'dart:io'; import 'dart:convert'; void main() async { var client = HttpClient(); try { var req = await client.getUrl(Uri.parse('https://tinyurl.com/ircv3')); var resp = await req.close(); final...
``` class Counter extends ChangeNotifier { int _counter = 0; void increment() { _counter = 1; } void reset() { _counter = 0; } } ``` `The value of the...
Re-filing from https://github.com/dart-lang/language/issues/3334 at the recommendation of @lrhn . I have run into this issue numerous times, so I thought I would suggest a linter check to catch this... (1):...
I wrote the following code and was surprised when _updateTime was never called: ```dart new Timer.periodic( const Duration(seconds: 1), (_) => _updateTime, ); ``` What the code should have looked...
It seems wasteful (both in terms of start up time and memory usage) to eagerly start service and kernel isolates especially when running from a snapshot. In Dart 1 Service...
Please see https://github.com/flutter/flutter/issues/151375 for more details about the issue and https://github.com/flutter/flutter/issues/151375#issuecomment-2244670587 for context about this particular issue.