getPackageRefs method
Return all the package references for the application. This includes the defining package as well as the direct and transitive dependencies.
Implementation
List<PackageRef> getPackageRefs() {
if (_packageRefs == null) _parsePubspecLock();
return _packageRefs!;
}