Your country

Tools that support it use your country for local currency, number formats, units and paper size. Your choice is saved only in this browser.

Type a name or a two-letter code. Use the up and down arrow keys to move through the countries, Enter to choose one and Escape to close.

Programming languages

Dart (3.13)

Dart 3.13 from a first program to production code: types and null safety, records and patterns, classes, async and isolates, packages, testing and tools.

50 lessons to read 17 modules

50 lessons: 37 free with Pro answers, 12 with a free core and 1 with a free intro.

Examples run with dart 3.13.5.

Who it is for

Flutter developers who want to understand the language under their widgets, and developers learning a modern, statically typed, null-safe language for CLIs, servers and the web. Assumes basic programming; the first module also works for motivated beginners.

What you will be able to do

  • Install the Dart 3.13 SDK, create and run console projects, and use the dart command's analyze, format, test and compile loop
  • Write programs with Dart's variables, numbers, strings, control flow, functions and closures
  • Rely on sound null safety, type promotion and late variables instead of null checks at run time
  • Use lists, sets, maps, collection literals, records and patterns, and validate JSON with patterns
  • Design types with classes, constructors, primary constructors, enums, mixins, class modifiers, sealed classes and extensions
  • Write asynchronous code with futures, async and await, and streams, and run work in parallel with isolates
  • Test Dart code with package:test, fakes and mocks, and keep it clean with lints and the formatter
  • Organise code in libraries and packages, manage dependencies with pub, and publish a package
  • Build command-line tools, shelf servers and web code, and compile to native, JavaScript and WebAssembly
  • Answer Dart interview questions with programs that prove each claim on the pinned SDK

Revise and practise

Modules and lessons

What the labels mean

Free lesson, Pro answers
the whole lesson is free; the model answers to its interview questions open with a pass
Free core, Pro depth
the core of the lesson is free; its in-depth parts open with a pass
Free intro, Pro
the first part is free; the rest opens with a pass
Pro
opens with a Pro, Premium or Ultimate pass

Minutes are reading time: “6 of 15 min free” means 6 minutes of the lesson are free.

What a pass opens in this track

26 in-depth parts and 109 interview answers. The same pass opens every other track and every Pro tool.

  1. Module 1

    Getting started: the SDK, a first program and the tools

    What Dart is in 2026, installing the 3.13 SDK, a first console project and the dart command's tool loop.

    1. What Dart is and where it runs Beginner Free lesson, Pro answers: 10 minutes
    2. Install the Dart 3.13 SDK on any OS Beginner Free lesson, Pro answers: 10 minutes
    3. Your first Dart program and project layout Beginner Free lesson, Pro answers: 10 minutes
    4. The dart command: analyze, format, test, compile Beginner Free lesson, Pro answers: 10 minutes
  2. Module 2

    Values and types: variables, numbers, strings and operators

    Declarations, numeric semantics on native and web targets, Unicode-correct strings and the operator set.

    1. Variables: var, final, const and type inference Beginner Free lesson, Pro answers: 15 minutes
    2. Numbers in Dart: int, double, BigInt and the web Beginner Free lesson, Pro answers: 20 minutes
    3. Dart strings, interpolation and Unicode text Beginner Free lesson, Pro answers: 15 minutes
    4. Operators, cascades and equality in Dart Beginner Free lesson, Pro answers: 15 minutes
  3. Module 3

    Control flow and functions

    Branches, loops and Dart 3 switch, then functions, parameters, closures and function types.

    1. if, else and loops: for, while and do-while Beginner Free lesson, Pro answers: 10 minutes
    2. Dart switch statements and expressions Beginner Free lesson, Pro answers: 10 minutes
    3. Functions: positional, named and default parameters Beginner Free lesson, Pro answers: 5 minutes
    4. Closures, function types and tear-offs Beginner Free lesson, Pro answers: 5 minutes
  4. Module 4

    Sound null safety

    Nullable and non-nullable types, the null-aware operators, flow analysis, promotion and late variables.

    1. Sound null safety: nullable types and operators Beginner Free lesson, Pro answers: 10 minutes
    2. Type promotion, late and definite assignment Intermediate Free lesson, Pro answers: 10 minutes
  5. Module 5

    Collections and iterables

    Lists, sets and maps, collection literals with if, for and spread, and lazy iterables with generators.

    1. Lists in Dart: create, index, sort and copy Beginner Free lesson, Pro answers: 10 minutes
    2. Sets and maps in Dart: uniqueness and lookup Beginner Free lesson, Pro answers: 15 minutes
    3. Collection if, for and spread in Dart Beginner Free lesson, Pro answers: 15 minutes
    4. Dart iterables, sync* generators and laziness Intermediate Free lesson, Pro answers: 10 minutes
  6. Module 6

    Records and pattern matching

    Records, destructuring, if-case, every pattern type and validating untrusted JSON with patterns.

    1. Records in Dart: several values without a class Beginner Free lesson, Pro answers: 15 minutes
    2. Destructuring and if-case in Dart Intermediate Free lesson, Pro answers: 10 minutes
    3. Every Dart pattern type, with examples Intermediate Free lesson, Pro answers: 10 minutes
    4. Validating JSON in Dart with patterns Intermediate Free lesson, Pro answers: 10 minutes
  7. Module 7

    Classes, constructors and enums

    Classes and privacy, every constructor form including Dart 3.13 primary constructors, enums and dot shorthands, operators and annotations.

    1. Classes, objects, getters and privacy Beginner Free lesson, Pro answers: 10 minutes
    2. Constructors: named, const, factory, redirecting Intermediate Free lesson, Pro answers: 10 minutes
    3. Primary constructors in Dart 3.13 Intermediate Free lesson, Pro answers: 10 minutes
    4. Enhanced enums and dot shorthands Beginner Free lesson, Pro answers: 15 minutes
    5. Operator overloading, callable objects, metadata Intermediate Free lesson, Pro answers: 15 minutes
  8. Module 8

    Generics and the type system

    Generic classes and methods, bounds, reified generics, and how Dart's sound type system checks code.

    1. Generics: classes, methods and bounds Intermediate Free lesson, Pro answers: 15 minutes
    2. The Dart type system: dynamic, Object?, Never Advanced Free lesson, Pro answers: 15 minutes
  9. Module 9

    Inheritance, mixins, class modifiers and extensions

    extends and implements, mixins, the Dart 3 class modifiers, sealed hierarchies, extension methods and extension types.

    1. Inheritance, abstract classes and interfaces Intermediate Free lesson, Pro answers: 10 minutes
    2. Mixins and the mixin class Intermediate Free core, Pro depth: 6 of 15 minutes free
    3. Class modifiers: base, interface, final, sealed Advanced Free core, Pro depth: 4 of 10 minutes free
    4. Sealed classes and exhaustive switches Intermediate Free core, Pro depth: 6 of 15 minutes free
    5. Extension methods in Dart Intermediate Free core, Pro depth: 4 of 10 minutes free
  10. Module 10

    Errors and exceptions

    Throwing and catching, Exception versus Error, stack traces, and designing error handling and input validation.

    1. Dart exceptions and errors: try, catch, finally Beginner Free lesson, Pro answers: 10 minutes
    2. Error handling design and input validation Intermediate Free core, Pro depth: 5 of 15 minutes free
  11. Module 11

    Asynchronous programming

    The event loop, futures, async and await, error handling across awaits, and consuming and creating streams.

    1. Dart's event loop, microtasks and futures Intermediate Free lesson, Pro answers: 15 minutes
    2. async, await and asynchronous errors Intermediate Free core, Pro depth: 4 of 10 minutes free
    3. Dart streams: listen, await for and transform Intermediate Free core, Pro depth: 5 of 15 minutes free
    4. Creating streams: async*, controllers and cleanup Advanced Free core, Pro depth: 4 of 10 minutes free
  12. Module 12

    Concurrency with isolates

    Isolates and Isolate.run for heavy work, long-lived workers with ports, and the limits on what can be sent.

    1. Isolates and Isolate.run for heavy work Intermediate Free lesson, Pro answers: 15 minutes
    2. Long-lived isolates, SendPort and ReceivePort Advanced Free core, Pro depth: 5 of 15 minutes free
  13. Module 13

    Testing and code quality

    package:test, async and time-dependent tests, fakes and mocks, analysis options, lints, dart fix and formatting in CI.

    1. Unit testing with package:test Beginner Free lesson, Pro answers: 10 minutes
    2. Testing async code, time and mocks Intermediate Free core, Pro depth: 6 of 15 minutes free
  14. Module 14

    Libraries, packages and pub

    Imports and privacy, dependencies and version constraints, workspaces for monorepos, and publishing packages.

    1. Libraries, imports, exports and privacy Intermediate Free lesson, Pro answers: 15 minutes
  15. Module 15

    Core libraries, files and HTTP

    Dates, URIs and regular expressions, JSON and encodings, files and processes, and HTTP clients.

    1. Dates, durations, URIs and regular expressions Intermediate Free lesson, Pro answers: 15 minutes
    2. JSON, UTF-8 and base64 Intermediate Free core, Pro depth: 5 of 15 minutes free
  16. Module 18

    Professional Dart: code generation, idioms and Flutter

    build_runner and generators, Effective Dart and patterns that fit the language, and Dart as Flutter developers use it.

    1. Idiomatic Dart: Effective Dart and patterns Intermediate Free core, Pro depth: 5 of 15 minutes free
  17. Module 19

    Staying current and preparing for interviews

    Every language change from Dart 3.0 to 3.13 with an upgrade path, and Dart interview preparation.

    1. What changed from Dart 3.0 to 3.13 Intermediate Free lesson, Pro answers: 10 minutes
    2. Dart interview preparation Intermediate Free intro, Pro: 3 of 15 minutes free

Related tools

Official documentation

More in Programming languages

Quick answers and tool search

Type to search tools or to get a quick answer, for example 18% of 2500. Use the up and down arrow keys to move through the results, Enter to choose, and Escape to close.