dead_code_analyzer 1.1.7
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_analyzerUse 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_analyzerWith Flutter:
$ flutter pub add dead_code_analyzerThis 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.7Alternatively, 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';