dependency_visitor 0.1.4 copy "dependency_visitor: ^0.1.4" to clipboard
dependency_visitor: ^0.1.4 copied to clipboard

outdated

Visits root package, transitive and immediate dependencies in order to search given files.

example/lib/main.dart

import 'package:dependency_visitor/dependency_visitor.dart';

void main() {
  print('Show which packages has LICENSE file:');
  DependencyVisitor(filePaths: ['LICENSE']).run().listen((dependencyFile) {
    print('Package: ${dependencyFile.packageName}:');
    print(dependencyFile.content);
    print('\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\n');
  }).onDone(() {
    print('Done!');
  });
}
1
likes
40
pub points
6%
popularity

Publisher

unverified uploader

Visits root package, transitive and immediate dependencies in order to search given files.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

effective_dart, equatable, meta, path, pubspec_lock, universal_io, yaml

More

Packages that depend on dependency_visitor