io library
dart:io-backed helpers for package:leak_graph.
The main package:leak_graph/leak_graph.dart barrel is pure Dart so it
stays safe to import from web-hosted consumers (e.g. a DevTools
extension). Anything that needs file-system access — such as detecting
the app's own package names from a project directory, for feeding
AppPackageSet/OriginClassifier an explicit config instead of relying on
auto-detection — lives here instead, behind an opt-in import.
Functions
-
packageNameFromPubspec(
String pubspecYaml) → String? -
Parses a pubspec.yaml's top-level
name:scalar. -
projectPackagesFromDir(
String rootDir) → Future< Set< String> > -
The root package name plus every workspace/melos member package name
found under
rootDir.