01Chapter 1: Anatomy of a Dart programAssume you can read basic code, use a terminal and code editor, and understand that classes create objects. This chapter focuses on how a Dart file is organized and how execution begins.2 min read
02Chapter 2: Variables, final, const, and built-in typesAssume you know basic programming, can use a terminal and editor, and understand classes and objects. This chapter focuses on how Dart stores values and controls whether those values can change.2 min read
03Chapter 3: Strings and interpolationThis chapter assumes you can declare variables, call functions, and run a Dart program. A Dart string is a sequence of characters. String literals are usually written with single quotes or double quotes. Both forms have the same behavior.2 min read
04Chapter 4: Sound null safetyThis chapter assumes you understand Dart variables, control flow, and functions. It also assumes basic object-oriented programming. Dart’s sound null safety makes the type system track whether a value can be null, so code can avoid many null-reference errors before it runs.2 min read
05Chapter 5: Control flow: conditions and loopsWe assume you know Dart variables, Boolean values, lists, and basic expressions. Control flow is the order in which Dart runs statements. Conditions choose between paths. Loops repeat a path.1 min read
06Chapter 6: Functions, named parameters, and closuresAssume you know variables, expressions, conditionals, and basic object-oriented programming. This chapter focuses on how Dart defines, passes, and stores behavior in functions.2 min read
07Chapter 7: Lists, Sets, and MapsThis chapter assumes that you know Dart variables, expressions, functions, and basic control flow. It focuses on choosing the right collection, transforming values, and avoiding common type and lookup errors.1 min read
08Chapter 8: Classes and constructorsAssume you already understand variables, functions, and basic object-oriented ideas such as classes and objects. In Dart, a class defines the data and behavior that its objects share. A constructor creates and initializes an object.2 min read
09Chapter 9: Inheritance, abstract classes, and mixinsThis chapter assumes basic Dart syntax, classes, constructors, and object-oriented concepts. You will see how Dart reuses behavior through inheritance and mixins, and how abstract classes define contracts without being instantiated directly.2 min read
10Chapter 10: Enums and extension methodsAssume you know Dart variables, functions, classes, and basic control flow. This chapter focuses on two features that help you represent fixed choices and add reusable behavior without changing a class's source code.2 min read
11Chapter 11: GenericsThis chapter assumes you understand variables, functions, classes, and basic null safety. Generics let you write reusable code while preserving information about the type of each value.1 min read
12Chapter 12: Records, patterns, and switch expressionsThis chapter assumes basic Dart syntax, classes, collections, and functions. You should also understand that Dart is statically typed and supports sound null safety.2 min read
13Chapter 13: Handling errors with exceptionsThis chapter assumes that you know Dart variables, functions, classes, and basic control flow. You should also be comfortable running a Dart program from a terminal.2 min read
15Chapter 15: Streams and async generatorsAssume you know Dart functions, Future, async, await, loops, and generic types. This chapter shows how to represent a sequence of values that arrives over time.2 min read
16Chapter 16: Libraries, imports, and packagesAssume you know basic Dart syntax, classes, and how to run a Dart program. This chapter explains how Dart code is split into libraries and how projects reuse code from the SDK or external packages.2 min read