Skip to main content

Version 2 of Google’s Dart programming language is now available

Dart, the programming language powering Flutter, Google’s cross-platform app development kit, and one of the primary languages used in Fuchsia OS, has officially reached version 2.0.0.

Update: Google has released an official announcement for Dart 2’s release. This article has been updated with relevant info.

The release of Dart 2 has been anticipated by developers since it was first announced, back in February. The excitement reached a fever pitch late last month, when it was teased that Dart 2’s release was in the “immediate future” and that package authors should migrate their code as soon as possible.

Dart 2 marks the rebirth of Dart as a mainstream programming language focused on enabling a fast development and great user experiences for mobile and web applications.

Coming from Dart 1, there’s two major developer-facing changes, the largest of which is a stronger type system, including runtime checks to help catch errors that would arise from mismatched or incorrectly labeled types. This type system, originally called “strong mode”, has long been the default in Flutter.

With Dart 2, you can’t get into a state where an expression evaluates to a value that doesn’t match the expression’s static type.

The other is an interesting quality-of-life change for Flutter developers, which allows creating an instance of a class without the “new” keyword. The goal of this change is to make Flutter code more readable, less clunky, and easier to type, but the principle applies to all Dart code. There have been plenty of other improvements happening under the hood, as can be seen in the official changelog.

Web applications have been central to Dart’s mission from the start. In fact, most Dart development at Google is for web applications. One of the biggest is Google Ads, which powers billions of dollars of the web economy.

Both Fuchsia and Flutter have used pre-release versions of Dart 2 for some months now, desiring to be ahead of the curve, with Fuchsia removing support for Dart 1 in April. That being the case, this release is targeted more at web and server developers, and is merely an interesting milestone for Flutter developers, who should know that releasing Dart 2 Stable is necessary before Flutter can leave beta.

Dart 2.0.0 is available for download now on Windows, Mac, and Linux, or you can read the official announcement.


Check out 9to5Google on YouTube for more news:

FTC: We use income earning auto affiliate links. More.

You’re reading 9to5Google — experts who break news about Google and its surrounding ecosystem, day after day. Be sure to check out our homepage for all the latest news, and follow 9to5Google on Twitter, Facebook, and LinkedIn to stay in the loop. Don’t know where to start? Check out our exclusive stories, reviews, how-tos, and subscribe to our YouTube channel

Comments

Author

Avatar for Kyle Bradshaw Kyle Bradshaw

Kyle is an author and researcher for 9to5Google, with special interests in Made by Google products, Fuchsia, and uncovering new features.

Got a tip or want to chat? Twitter or Email. Kyle@9to5mac.com

Manage push notifications

notification icon
We would like to show you notifications for the latest news and updates.
notification icon
You are subscribed to notifications
notification icon
We would like to show you notifications for the latest news and updates.
notification icon
You are subscribed to notifications