Welcome to the Dart API reference documentation, covering the core Dart API libraries. Some of the most fundamental Dart libraries 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 install more libraries using the pub package manager.

The main site for learning and using Dart is www.dartlang.org. 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.