dart-code-generation

Installation
SKILL.md

Generating Dart Code with Build Runner

Contents

Setup and Configuration

Configure build_runner to handle code generation for packages utilizing the Dart build system (e.g., json_serializable, built_value_generator).

Add the required packages to your dev_dependencies in pubspec.yaml. Include build_test only if you are writing tests that depend on generated code.

Note: For web-specific development and serving, refer to the dart-web-development skill and use the webdev tool instead of build_runner serve. Note: For testing strategies, refer to the dart-testing skill.

Core Commands

Installs
70
GitHub Stars
321
First Seen
Mar 17, 2026
dart-code-generation — dart-lang/skills