.package

pub get

pub get --packages-dir

Uri actualURI =

await Isolate.resolvePackageUri(Uri.parse("package:foo/bar.txt"))