dart_unused_files 1.0.0
dart_unused_files: ^1.0.0 copied to clipboard
A Dart CLI tool that scans your Flutter or Dart project to find unused .dart files that can be safely removed.
Use this package as an executable
Install it
You can install the package from the command line:
dart pub global activate dart_unused_files
Use it
The package has the following executables:
$ dart_unused_files
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add dart_unused_files
With Flutter:
$ flutter pub add dart_unused_files
This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get
):
dependencies:
dart_unused_files: ^1.0.0
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:dart_unused_files/dart_unused_files.dart';