dart_dependency_checker 0.1.4 dart_dependency_checker: ^0.1.4 copied to clipboard
A utility package for checking dependencies within Dart/Flutter packages.
import 'package:dart_dependency_checker/dart_dependency_checker.dart';
void main() {
const depsUnusedChecker = DepsUnusedChecker(
DepsUnusedParams(
path: '.',
mainIgnores: {'meta'},
devIgnores: {'build_runner'},
),
);
const transitiveUseChecker = TransitiveUseChecker(
TransitiveUseParams(
path: '.',
mainIgnores: {},
devIgnores: {'args', 'convert'},
),
);
try {
print(depsUnusedChecker.check());
print(transitiveUseChecker.check());
} on CheckerError catch (e) {
print(e.message);
}
}