What’s new in Google’s Dart 2.1 language

Dart 2.1 arrives with faster type checks, clearer type errors, and smaller code sizes for compiled output

Become An Insider

Sign up now and get FREE access to hundreds of Insider articles, guides, reviews, interviews, blogs, and other premium content. Learn more.

Google’s Dart language, once positioned a potential replacement for JavaScript in the browser, was rebooted for client-side web and mobile development with the release of Dart 2 in August 2018. Now Dart 2.1 is available as a stable release, with improvements for running code on the web.

Dart 2 features a strengthened type system, a cleaned-up syntax, and a rebuilt developer tool chain. Dart has a succinct syntax and can run on a VM with a just-in-time compiler, with the compiler enabling stateful, hot reload during mobile development.

Developers also gain from fast development cycles where code can be edited, compiled, and replaced in apps running on a device. Compiling code ahead of time provides fast startup, Google said.

Dart can be compiled to native code for ARM and x86 platforms. Google has used the language to build applications for iOS, Android, and the web.

The production release of the Dart 2 language arrived on August 7, featuring a rewrite of the platform geared toward web and mobile development.

Current version: What’s new in Dart 2.1

To continue reading this article register now