flutter_packages_remover library

Functions

findUnusedPackages(String projectPath) Future<List<String>>
Finds unused packages in the 'dependencies' section of pubspec.yaml.
removePackages(String pubspecPath, List<String> packagesToRemove) Future<void>
Removes the specified packages from the 'dependencies' section of pubspec.yaml.