Skip to main content

Introduction to Dart SDK

Dart is an approachable, portable, and productive language for building high-quality apps on any platform. Whether you’re targeting mobile, desktop, server, or web, Dart provides the tools and flexibility you need.

Why Dart?

Approachable

Develop with a strongly typed programming language that is consistent, concise, and offers modern language features like null safety and patterns.

Portable

Compile to ARM, x64, or RISC-V machine code for mobile, desktop, and backend. Compile to JavaScript or WebAssembly for the web.

Productive

Make changes iteratively with hot reload to see results instantly. Diagnose app issues using DevTools for streamlined development.

Compilation flexibility

Dart’s flexible compiler technology lets you run code in different ways, depending on your target platform and goals:
For programs targeting devices (mobile, desktop, server, and more), Dart Native includes:
  • Dart VM with JIT compilation: Just-in-time compilation for fast development cycles
  • AOT compiler: Ahead-of-time compilation for producing optimized machine code
For programs targeting the web, Dart Web includes:
  • Development compiler (dartdevc): Fast compilation for development with better debugging
  • Production compiler (dart2js): Optimized JavaScript output for production deployments

Get started

Installation

Install the Dart SDK on your platform of choice - macOS, Windows, or Linux

Quickstart

Write and run your first Dart program in minutes

Language tour

Learn about Dart’s language features and syntax

Core libraries

Explore the comprehensive API reference documentation

Key features

1

Null safety

Dart’s sound null safety helps you avoid null reference errors, catching potential bugs at compile time rather than runtime.
2

Strong typing with inference

Get the benefits of static typing with the convenience of type inference, making your code both safe and concise.
3

Hot reload

See your changes instantly in your running app without losing state, dramatically speeding up development.
4

Rich standard library

Access a comprehensive set of core libraries for async programming, collections, I/O, and more.

Open source and free

Dart is free and open source software, developed by Google with contributions from the community. The SDK is available under a BSD-style license.

View on GitHub

Explore the source code, contribute, or file issues on the Dart SDK repository

Community and resources

pub.dev

Browse thousands of packages and libraries contributed by the Dart community

Codelabs

Learn Dart through hands-on, interactive tutorials

dart.dev

Visit the official Dart website for comprehensive guides and documentation

DevTools

Use powerful debugging and profiling tools to diagnose and optimize your apps

Build docs developers (and LLMs) love