Populars: Dades actualitzades el 31 d’octubre del 2026

Categories

Internet1.361
Comunicació321
Àudio i vídeo903
Gràfics i disseny543
Ofimàtica i productivitat1.120
Eines per a desenvolupadors3.139
Eines d’IA534
Seguretat i privadesa388
Eines del sistema3.126
Jocs524
Educació i ciència239
Xarxa i TI283

Baixar Dart SDK 3.12.0 per a Windows

A set of tools and libraries for the Dart programming language.

Google Llenguatges i SDK #14 Llenguatges i SDK
Aquesta és una versió anterior. La versió actual és la 3.13.7. Dart SDK 3.13.7 · Data de publicació:

Fitxers d’instal·lació 3.12.0

ArquitecturaTipusÀmbitMida del fitxerBaixaSHA256
64 bits ZIP → Portable — 214,2 MB storage.googleapis.com VirusTotal
ARM64 ZIP → Portable — 157,5 MB storage.googleapis.com VirusTotal

L’enllaç i l’SHA256 provenen del manifest comunitari del Gestor de paquets del Windows. Convé comparar el hash del fitxer baixat abans d’executar-lo.

Notes de la versió

Released on: Unreleased
Language
Private named parameters
Dart now supports private named parameters. Before 3.12, it was an error to have a named parameter that starts with an underscore:
class Point {
final int _x, _y;
// Compile error in Dart 3.11.
Point({required this._x, required this._y});
}
This means that, before 3.12, initializing a private field from a named parameter required an explicit initializer list:
class Point {
final int _x, _y;
Point({required int x, required int y})
: _x = x,
_y = y;
}
All the initializer list is doing is removing the leading _. In Dart 3.12, the language does that for you. Now you can write:
class Point {
final int _x, _y; // Private fields.
Point({required this._x, required this._y});
}
This code behaves exactly like the previous example. The initialized fields are private, but the argument names written at the call site are public:
void main() {
print(Point(x: 1, y: 2));
}
Libraries
dart:core
- The Dart VM's RegExp implementation now supports modifier spans and duplicate named capture groups.
dart:js_interop
- Breaking change in extension name of isA: isA is moved from JSAnyUtilityExtension to NullableObjectUtilExtension to support type-checking any Object?. isA<JSObject>() also now handles JS objects with no prototypes correctly and isA<JSAny>() does a non-trivial check to make sure the value is a JS value. See #56905 for more details. As JSAnyUtilityExtension is on JSAny? and NullableObjectUtilExtension is on the supertype Object?, this change is only breaking if users referred to the extension name directly, either through applying the extension directly or through using show/hide directives.
- isA<JSExportedDartFunction>() now checks whether the function is actually a JS wrapper function that is returned from Function.toJS or Function.toJSCaptureThis.
- Added JSIterableProtocol, JSIterable, JSIteratorProtocol, JSIterator, and JSIteratorResult types to model JavaScript's iteration protocols. JSArray and JSString now implement JSIterable.
- Added extension types to provide Iterable.toJSIterable, JSIterable.toDartIterable, Iterator.toJSIterator, and JSIterator.toDartIterator.
Tools
Analyzer
- The new simple_directive_paths lint and its associated fix flag and simplify unnecessarily complex import and export paths, such as those containing redundant ./ or backtracking ../ segments.
Use dart fix --code=simple_directive_paths (with either --dry-run or --apply) to bulk fix existing lint violations.
- The prefer_initializing_formals lint rule highlights named parameters that could be private named parameters.
Use dart fix --code=prefer_initializing_formals (with either --dry-run or --apply) to bulk fix existing lint violations.
- Violations of the avoid_final_parameters lint can now be fixed with dart fix --code=avoid_final_parameters.
- The analyzer now warns when a function that contains a parameter annotated with @mustBeConst is torn off.
- The invalid_runtime_check_with_js_interop_types rule now checks for JS interop types used in a catch clause's on-type and instructs users to use isA for type checks instead.
- Analyzer plugins: Initial support for 'print debugging' via new sections in the "Plugins" Insights (Diagnostics) page. When a plugin is computing lint and warning diagnostics, print calls are now redirected to the analysis server, which presents the messages in the appropriate plugin's section on the Plugins page.
- Improved support for extension types in many existing lint rules.
- Improved support for null-aware elements in existing lint rules.
- The analysis server starts up faster with the help of improved analysis options file caching. The improvement depends on the number of analysis options files in the workspace, and the number of included analysis options files. The improvement is greater for systems with slower disk access.
- Various other improvements to analysis performance.
Pub
- dart pub cache repair now, by default, only repairs the packages referenced by the current project's pubspec.lock file. For the old behavior of repairing all packages, use the --all flag.
- dart pub add and dart pub unpack now accept @ as an alternative to : for separating a package name from its version constraint.
- Git dependencies now support Git Large File Storage (LFS).
dart2wasm
- Updated deferred loading module loader API to allow batched fetching of deferred modules. The embedder now takes loadDeferredModules instead of loadDeferredModule where the new function should now expect an array of module names rather than individual module names. All the module loading functions must now also accept an instantiator callback to which they should pass the loaded results.
dart2js
- JSExportedDartFunction.toDart sometimes incorrectly returned the original Dart function even if the wrapper JS function was cast from a call to the deprecated allowInterop. Instead, to be consistent with DDC and dart2wasm, it now throws if the wrapper JS function wasn't a result of Function.toJS or Function.toJSCaptureThis.

https://github.com/dart-lang/sdk/blob/HEAD/CHANGELOG.md#3120

El més popular a Llenguatges i SDK

Mostra-ho tot
  1. Go Programming LanguageLlenguatges i SDK
  2. LLVMLlenguatges i SDK · LLVM
  3. DenoLlenguatges i SDK · Deno Land Inc.
  4. CMakeLlenguatges i SDK · Kitware
  5. YarnLlenguatges i SDK · Yarn Contributors
  6. CcacheLlenguatges i SDK · Joel Rosdahl
  7. sbtLlenguatges i SDK · Lightbend, Inc.
  8. BOINCLlenguatges i SDK · Space Sciences Laboratory, U.C. Berkeley
  9. Dart SDKLlenguatges i SDK · Google
  10. NVM for WindowsLlenguatges i SDK · Ecor Ventures LLC

Més programes de Google

Mostra-ho tot

Etiquetes

Comparteix