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: 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
- Practice: every exercise and quiz (50 quizzes)
- Dart (3.13) flashcards
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.
- 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.
- What Dart is and where it runs Free lesson, Pro answers: 10 minutes
- Install the Dart 3.13 SDK on any OS Free lesson, Pro answers: 10 minutes
- Your first Dart program and project layout Free lesson, Pro answers: 10 minutes
- The dart command: analyze, format, test, compile Free lesson, Pro answers: 10 minutes
- 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.
- Variables: var, final, const and type inference Free lesson, Pro answers: 15 minutes
- Numbers in Dart: int, double, BigInt and the web Free lesson, Pro answers: 20 minutes
- Dart strings, interpolation and Unicode text Free lesson, Pro answers: 15 minutes
- Operators, cascades and equality in Dart Free lesson, Pro answers: 15 minutes
- Module 3
Control flow and functions
Branches, loops and Dart 3 switch, then functions, parameters, closures and function types.
- if, else and loops: for, while and do-while Free lesson, Pro answers: 10 minutes
- Dart switch statements and expressions Free lesson, Pro answers: 10 minutes
- Functions: positional, named and default parameters Free lesson, Pro answers: 5 minutes
- Closures, function types and tear-offs Free lesson, Pro answers: 5 minutes
- Module 4
Sound null safety
Nullable and non-nullable types, the null-aware operators, flow analysis, promotion and late variables.
- Sound null safety: nullable types and operators Free lesson, Pro answers: 10 minutes
- Type promotion, late and definite assignment Free lesson, Pro answers: 10 minutes
- Module 5
Collections and iterables
Lists, sets and maps, collection literals with if, for and spread, and lazy iterables with generators.
- Lists in Dart: create, index, sort and copy Free lesson, Pro answers: 10 minutes
- Sets and maps in Dart: uniqueness and lookup Free lesson, Pro answers: 15 minutes
- Collection if, for and spread in Dart Free lesson, Pro answers: 15 minutes
- Dart iterables, sync* generators and laziness Free lesson, Pro answers: 10 minutes
- Module 6
Records and pattern matching
Records, destructuring, if-case, every pattern type and validating untrusted JSON with patterns.
- Records in Dart: several values without a class Free lesson, Pro answers: 15 minutes
- Destructuring and if-case in Dart Free lesson, Pro answers: 10 minutes
- Every Dart pattern type, with examples Free lesson, Pro answers: 10 minutes
- Validating JSON in Dart with patterns Free lesson, Pro answers: 10 minutes
- 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.
- Classes, objects, getters and privacy Free lesson, Pro answers: 10 minutes
- Constructors: named, const, factory, redirecting Free lesson, Pro answers: 10 minutes
- Primary constructors in Dart 3.13 Free lesson, Pro answers: 10 minutes
- Enhanced enums and dot shorthands Free lesson, Pro answers: 15 minutes
- Operator overloading, callable objects, metadata Free lesson, Pro answers: 15 minutes
- Module 8
Generics and the type system
Generic classes and methods, bounds, reified generics, and how Dart's sound type system checks code.
- Generics: classes, methods and bounds Free lesson, Pro answers: 15 minutes
- The Dart type system: dynamic, Object?, Never Free lesson, Pro answers: 15 minutes
- Module 9
Inheritance, mixins, class modifiers and extensions
extends and implements, mixins, the Dart 3 class modifiers, sealed hierarchies, extension methods and extension types.
- Inheritance, abstract classes and interfaces Free lesson, Pro answers: 10 minutes
- Mixins and the mixin class Free core, Pro depth: 6 of 15 minutes free
- Class modifiers: base, interface, final, sealed Free core, Pro depth: 4 of 10 minutes free
- Sealed classes and exhaustive switches Free core, Pro depth: 6 of 15 minutes free
- Extension methods in Dart Free core, Pro depth: 4 of 10 minutes free
- Module 10
Errors and exceptions
Throwing and catching, Exception versus Error, stack traces, and designing error handling and input validation.
- Dart exceptions and errors: try, catch, finally Free lesson, Pro answers: 10 minutes
- Error handling design and input validation Free core, Pro depth: 5 of 15 minutes free
- Module 11
Asynchronous programming
The event loop, futures, async and await, error handling across awaits, and consuming and creating streams.
- Dart's event loop, microtasks and futures Free lesson, Pro answers: 15 minutes
- async, await and asynchronous errors Free core, Pro depth: 4 of 10 minutes free
- Dart streams: listen, await for and transform Free core, Pro depth: 5 of 15 minutes free
- Creating streams: async*, controllers and cleanup Free core, Pro depth: 4 of 10 minutes free
- 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.
- Isolates and Isolate.run for heavy work Free lesson, Pro answers: 15 minutes
- Long-lived isolates, SendPort and ReceivePort Free core, Pro depth: 5 of 15 minutes free
- 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.
- Unit testing with package:test Free lesson, Pro answers: 10 minutes
- Testing async code, time and mocks Free core, Pro depth: 6 of 15 minutes free
- Module 14
Libraries, packages and pub
Imports and privacy, dependencies and version constraints, workspaces for monorepos, and publishing packages.
- Libraries, imports, exports and privacy Free lesson, Pro answers: 15 minutes
- Module 15
Core libraries, files and HTTP
Dates, URIs and regular expressions, JSON and encodings, files and processes, and HTTP clients.
- Dates, durations, URIs and regular expressions Free lesson, Pro answers: 15 minutes
- JSON, UTF-8 and base64 Free core, Pro depth: 5 of 15 minutes free
- 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.
- Idiomatic Dart: Effective Dart and patterns Free core, Pro depth: 5 of 15 minutes free
- 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.
- What changed from Dart 3.0 to 3.13 Free lesson, Pro answers: 10 minutes
- Dart interview preparation Free intro, Pro: 3 of 15 minutes free
Related tools
Official documentation
- Dart language documentation (The Dart project (Google))
- Dart core libraries (The Dart project (Google))
- Dart tools (The Dart project (Google))
- Dart SDK changelog (The Dart project (Google))
- Dart language specification (The Dart project (Google))