Dart
Learn Dart 3: sound null safety, records, patterns, sealed classes, mixins, async/await, streams, isolates, packages and testing, with the Flutter connection.
What you'll learn
- Explain Dart's compilation model and use the dart CLI, pubspec.yaml and pub.dev.
- Write null-safe Dart with var, final, const, late, collection literals and lazy iterables.
- Use functions, closures, tear-offs and exceptions effectively.
- Design classes with constructors, mixins, interfaces, enhanced enums and Dart 3 class modifiers.
- Model data with records, patterns, switch expressions, generics, extensions and extension types.
- Write asynchronous and parallel code with futures, streams and isolates, and test and compile it for each target.
Syllabus
Getting Started with Dart
- What Dart Is and Where It Runs
- The Dart SDK, Projects and pubspec.yaml
- Variables, final, const and Basic Types
Null Safety, Control Flow and Collections
Functions and Error Handling
Classes and Object-Oriented Dart
- Classes, Constructors and Initialiser Lists
- Inheritance, Interfaces, Abstract Classes and Mixins
- Enhanced Enums and Dart 3 Class Modifiers
Records, Patterns, Generics and Extensions
- Records and Destructuring
- Patterns and Switch Expressions
- Generics, Extension Methods and Extension Types
Asynchronous Dart
Packages, Code Quality and Testing
- Libraries, Imports and pub.dev Packages
- Static Analysis, Lints and Formatting
- Testing with package:test and Mocks