文章
阅读这些文章,了解 Dart 语言及其库。
详见:
语言详述
-
Emulating Functions in Dart
January 2012 (updated: September 2018)Learn how to define Dart classes that behave like functions.
-
A Brief History of Mixins in Dart
December 2012 (updated: June 2018)Mixins let you implement functionality once and use it in multiple classes.
-
Dart Language Asynchrony Support: Phase 2
March 2015Async*, sync*, yield, and yield* are now available as part of Dart's asynchrony support.
-
Dart Language Asynchrony Support: Phase 1
October 2014Async and await, two language features that support asynchronous programming, are now available in Dart.
库 和 API
-
Creating Streams in Dart
April 2013 (updated: September 2018)A stream is a sequence of results; learn how to create your own.
-
An Introduction to the dart:io Library
March 2012 (updated: September 2018)An introduction to the Dart I/O library, which is aimed at code that runs in Flutter and the standalone Dart VM.
-
Serialization in Dart
February 2015 (updated: July 2018)Choose the serialization strategy that's right for your project.
-
Converters and Codecs
February 2014 (updated: March 2015)Learn how to write efficient conversions.
-
Zones
March 2014Manage your asynchronous code: handle uncaught errors, override behavior (such as printing and scheduling tasks), and more.
-
Single-Subscription vs. Broadcast Streams
January 2014Choose the kind of stream that's best for your application: single-subscription or broadcast.
-
Reflection in Dart with Mirrors: An Introduction
November 2012 (updated: November 2013)Use the dart:mirrors library for introspection: discovering and using your program's structure.