目录
Contents
Dart 拥有非常丰富的核心库用以为诸如处理对象集合(dart:collection
)、进行数学运算(dart:math
)以及编/解码数据(dart:convert
)等常用编程操作提供支持。除此之外,
由社区贡献的 packages 中也提供了许多其它的 API 便于开发者使用。
Dart has a rich set of core libraries that provide essentials for many everyday
programming tasks such as working on collections of objects
(dart:collection
), making calculations (dart:math
), and encoding/decoding
data (dart:convert
). Additional APIs are available in
community contributed packages.
全平台库列表
Multi-platform libraries
下面提供的一些库可以应用于所有 Dart 可运行的平台。
The following table lists the Dart core libraries that work on all Dart platforms.
库名称 Library |
备忘 Notes |
---|---|
|
|
|
|
|
|
|
|
|
只支持 JIT 和 dartdevc JIT and dartdevc only |
|
|
|
原生平台库
Native platform libraries
下面列出的核心库适用于 Dart 原生平台(AOT 和 JIT 编译运行)。
The following table lists the Dart core libraries that work on the Dart native platform (AOT- and JIT-compiled code).
库名称 Library |
备忘 Notes |
---|---|
|
|
|
|
|
|
|
实验性 Experimental |
Web 平台库
Web platform libraries
下面列出的核心库适用于 Dart Web 平台(代码编译成 JS 来运行)。
The following table lists the Dart core libraries that work on the Dart web platform (code compiled to JavaScript).
库名称 Library |
备忘 Notes |
---|---|
|
|
|
|
|
已弃用 DEPRECATED |
|
|
|
|
|
|
|