dead_code_analyzer 1.1.7 copy "dead_code_analyzer: ^1.1.7" to clipboard
dead_code_analyzer: ^1.1.7 copied to clipboard

A tool to analyze and identify dead/unused code in Dart and Flutter projects.

Use this package as an executable

Install it

You can install the package from the command line:

dart pub global activate dead_code_analyzer

Use it

The package has the following executables:

$ dead_code_analyzer

Use this package as a library

Depend on it

Run this command:

With Dart:

 $ dart pub add dead_code_analyzer

With Flutter:

 $ flutter pub add dead_code_analyzer

This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):

dependencies:
  dead_code_analyzer: ^1.1.7

Alternatively, your editor might support dart pub get or flutter pub get. Check the docs for your editor to learn more.

Import it

Now in your Dart code, you can use:

import 'package:dead_code_analyzer/dead_code_analyzer.dart';
9
likes
160
points
1.25k
downloads

Publisher

unverified uploader

Weekly Downloads

A tool to analyze and identify dead/unused code in Dart and Flutter projects.

Repository (GitHub)
View/report issues
Contributing

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

analyzer, args, intl, path

More

Packages that depend on dead_code_analyzer