Analyzing and Fixing Dart Code
1,209Execute `dart analyze` to identify warnings and errors, and use `dart fix --apply` to automatically resolve mechanical lint issues. Use duri
Testing Dart and Flutter Applications
1,209Write and organize unit tests for functions, methods, and classes using `package:test`. Use when creating new logic or fixing bugs to ensure
Resolving Dart Static Analysis Errors
1,208Uses get_runtime_errors and lsp to fetch an active stack trace, locate the failing line, apply a fix, and verify resolution via hot_reload.
Implementing Dart Patterns
1,207Use switch expressions and pattern matching where appropriate
dart-resolve-package-conflicts
1,205Workflow for fixing package version conflicts. Use this when `pub get` fails due to incompatible package versions.
Implementing Dart and Flutter Test Coverage
1,187Collect coverage using the coverage packge and create an LCOV report
Testing and Mocking Dart Applications
1,184Define and generate mock objects for external dependencies using `package:mockito` and `build_runner`. Use when unit testing classes that de
Migrating Dart Tests to Package Checks
1,161Replace the usage of `expect` and similar functions from `package:matcher` to `package:checks` equivalents.
Building Dart CLI Applications
1,156Entrypoint structure, exit codes, cross-platform scripts. Use when building command line utilities, scripts, or applications.