Dart SDK

Welcome to the Dart API reference documentation, covering the Dart core libraries. These include:

  • dart:core: Core functionality such as strings, numbers, collections, errors, dates, and URIs.
  • dart:html: DOM manipulation for web apps (available only to web apps).
  • dart:io: I/O for non-web apps.

Except for dart:core, you must import a library before you can use it. Here's an example of importing dart:async and dart:math:

import 'dart:async';
import 'dart:math';

You can find more libraries using the pub.dev site.

The main site for learning and using Dart is dart.dev. Check out these pages:

This API reference is automatically generated from source code in the Dart SDK project. If you'd like to give feedback or edit this documentation, see Contributing.

Libraries

Core

dart:async
Support for asynchronous programming, with classes such as Future and Stream. [...]
dart:collection
Classes and utilities that supplement the collection support in dart:core. [...]
dart:convert
Encoders and decoders for converting between different data representations, including JSON and UTF-8. [...]
dart:core
Built-in types, collections, and other core functionality for every Dart program. [...]
dart:developer
Interact with developer tools such as the debugger and inspector. [...]
dart:math
Mathematical constants and functions, plus a random number generator. [...]
dart:typed_data
Lists that efficiently handle fixed sized data (for example, unsigned 8 byte integers) and SIMD numeric types. [...]

VM

dart:ffi
Foreign Function Interface for interoperability with the C programming language. [...]
dart:io
File, socket, HTTP, and other I/O support for non-web applications. [...]
dart:isolate
Concurrent programming using isolates: independent workers that are similar to threads but don't share memory, communicating only via messages. [...]
dart:mirrors
Basic reflection in Dart, with support for introspection and dynamic invocation. [...]

Web

dart:html
HTML elements and other resources for web-based applications that need to interact with the browser and the DOM (Document Object Model). [...]
dart:indexed_db
A client-side key-value store with support for indexes. [...]
dart:js
Low-level support for interoperating with JavaScript. [...]
dart:js_util
Utility methods to manipulate package:js annotated JavaScript interop objects in cases where the name to call is not known at runtime. [...]
dart:svg
Scalable Vector Graphics: Two-dimensional vector graphics with support for events and animation. [...]
dart:web_audio
High-fidelity audio programming in the browser.
dart:web_gl
3D programming in the browser.
dart:web_sql
An API for storing data in the browser that can be queried with SQL. [...]

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dart.dev/stable/2.13.0/index.html