flutter_unused_packages 1.0.1
flutter_unused_packages: ^1.0.1 copied to clipboard
“A CLI tool to scan, detect and remove unused dependencies in Flutter projects, improving code organization.”
Use this package as an executable
Install it
You can install the package from the command line:
dart pub global activate flutter_unused_packagesUse it
The package has the following executables:
$ flutter_unused_packages
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add flutter_unused_packagesWith Flutter:
$ flutter pub add flutter_unused_packagesThis will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):
dependencies:
flutter_unused_packages: ^1.0.1Alternatively, 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:flutter_unused_packages/application/usecases/analyze_dependencies.dart';
import 'package:flutter_unused_packages/core/config/config_reader.dart';
import 'package:flutter_unused_packages/data/repository/dependency_repository_impl.dart';
import 'package:flutter_unused_packages/data/sources/project_analyzer.dart';
import 'package:flutter_unused_packages/data/sources/pubspec_parser.dart';
import 'package:flutter_unused_packages/domain/models/dependency_model.dart';
import 'package:flutter_unused_packages/domain/repository/dependency_repository.dart';