Recently released on pub: Show more releases

Latest Blog Posts

Yup, that’d be correct!

Matan Lurey, on 26 Apr 2017
Yup, that’d be correct! read more

Are Futures in Dart threads?

Matan Lurey, on 26 Apr 2017
Well, no. Dart has a single thread, or event-loop, of execution. However, commonly you’ll see a code using Future have a comment something to the effect of “// Avoid race conditions: Check for …”. What does that mean?New to futures? Read asynchronous programming: Futures on the Dart site.While Dart has a single thread of execution, it can interact with other code (Dart or otherwise, such as server-side) that runs in a separate thread. What Future<T> as an API means is simply “get a value, T, at a future point in time”. That time? It could be at the end of the microtask loop,... read more

Dart SDK and Dartium 1.23.0 Chocolatey Packages for Windows

Davy Mitchell, on 24 Apr 2017
Chocolatey is a package manager for Windows similar to Linux's apt-get, based on Microsoft's Nuget tool and Powershell scripting language. It works from the command-line and from a WPF GUI interface. You can install unmoderated versions by specifiying the install version during installation.Chocolatey has also been updated with versions 1.23.0Command line installation: choco uninstall dart-sdkchoco install -y dart-sdk -version 1.23.0To verify you have the right version on your path. dart --versionDart VM version: 1.23.0 (Fri Apr 21 03:13:00 2017) on "windows_x64"Command line installation: choco uninstall dartiumchoco install -y dartium -version 1.23.0 read more

An intro to immutability with Dart

Matan Lurey, on 24 Apr 2017
It’s impossible to deny that immutability is a hot topic in programming, especially front-end programming. Libraries like Immutable.js and other concepts like unidirectional data flow have argued it’s easier to reason about data when it doesn’t change underneath you:In object-oriented and functional programming, an immutable object (unchangeable object) is an object whose state cannot be modified after it is created. This is in contrast to a mutable object (changeable object), which can be modified after it is created.Well, what about Dart? We have a couple concepts that lend themselves well to immutability and immutable objects built-in, starting with the const modifier... read more

Dart 1.23: Better strong mode support

Filip Hráček, on 21 Apr 2017
Dart 1.23 is now available. It introduces support for overriding fields in strong mode and a lot of other improvements. Get it now!Figure 1: Overriding fields in strong modeWe have been spending a lot of our time on our unified front-end (explained by Vyacheslav Egorov in this short talk from the Dart Developer Summit). We're also doing a lot of work to support our critical customers (for example, Flutter gets better Windows support with this release) and solidifying strong mode.Some notable changes in this release:Overriding fields is now supported in strong mode. You don’t need to tag them with @virtual anymore.Strong mode... read more