dart_dependency_checker 0.1.7 copy "dart_dependency_checker: ^0.1.7" to clipboard
dart_dependency_checker: ^0.1.7 copied to clipboard

A utility package for checking dependencies within Dart/Flutter packages.

example/main.dart

import 'package:dart_dependency_checker/dart_dependency_checker.dart';

void main() {
  const depsUnusedChecker = DepsUnusedChecker(
    DepsUnusedParams(
      path: '.',
      mainIgnores: {'meta'},
      devIgnores: {'build_runner'},
      fix: true, // Danger zone! Use with caution.
    ),
  );

  const transitiveUseChecker = TransitiveUseChecker(
    TransitiveUseParams(
      path: '.',
      mainIgnores: {},
      devIgnores: {'args', 'convert'},
    ),
  );

  try {
    print(depsUnusedChecker.check());
    print(transitiveUseChecker.check());
  } on CheckerError catch (e) {
    print(e.message);
  }
}
3
likes
160
pub points
26%
popularity

Publisher

verified publisher2ohm.de

A utility package for checking dependencies within Dart/Flutter packages.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

equatable, yaml

More

Packages that depend on dart_dependency_checker