Welcome!

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:io: I/O for non-web apps.
  • dart:async: Functionality for asynchronous programming with futures, streams, and zones.

You‘ll also find reference documentation covering Dart’s various platform interoperability options, such as:

  • dart:js_interop: Library including a sound type hierarchy and helper functions for interoperability with JavaScript.
  • package:web: DOM manipulation for web apps.
  • dart:ffi: Foreign function interfaces for interoperability with the C language.

The core libraries - except for dart:core - must be imported before they're available for use:

import 'dart:math';

Additionally, you can find Dart packages at pub.dev.

Language docs

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

This API reference is generated from the SDK source at dart-lang/sdk. If you'd like to give feedback on or edit this documentation, see Contributing.