changedPackages property
Returns the names of all packages that were changed.
This includes packages that were added or removed.
Implementation
Set<String> get changedPackages {
final changed = packages
.where((id) => _previousLockFile.packages[id.name] != id)
.map((id) => id.name)
.toSet();
return changed.union(
_previousLockFile.packages.keys
.where((package) => !availableVersions.containsKey(package))
.toSet(),
);
}