loadCached method
Implementation
Package loadCached(PackageId id) {
final source = id.description.description.source;
if (source is CachedSource) {
return Package.load(
source.getDirectoryInCache(id, this),
sources,
expectedName: id.name,
);
} else {
throw ArgumentError('Call only on Cached ids.');
}
}