The Dart team's official skills for writing, testing, and refactoring Dart code.
The Dart team's official skills for everyday Dart work: add and run unit tests, refactor code, resolve analyzer issues, and apply idiomatic language patterns.
Arranged in the author's recommended order. Walk through them in sequence, or open any one on its own.
Write and organize package:test unit tests for Dart functions, classes, and methods.
Structure cross-platform Dart command-line applications with arguments and exit codes.
Collect Dart test coverage and generate LCOV reports.
Compile and package native C or C++ assets using Dart Native Assets hooks.
Use runtime traces and language-server context to locate, fix, and verify errors.
Generate Mockito mocks and build_runner outputs for test dependencies.
Replace matcher-based expectations with package:checks equivalents.
Diagnose and fix incompatible pub package constraints.
Run dart analyze and apply safe mechanical fixes.
Generate FFI bindings for C, Objective-C, or Swift APIs using package:ffigen.
Apply Dart switch expressions and pattern matching where appropriate.