Quickstart
Get started with dart_shield
Quickstart
Installation
dart_shield works as a Dart analyzer plugin. To use it, you need to add it to your project's dev_dependencies.
dart pub add --dev dart_shield
If you want to use the CLI commands globally (optional but recommended for CI/CD or quick initialization), you can also activate it globally:
dart pub global activate dart_shield
Initialization
In the root of your Dart/Flutter project, initialize dart_shield. This will configure your analysis_options.yaml to enable the plugin.
dart_shield init