getDefiningPackageRef method
Return the reference to the defining package. This is the package that defines the application.
Implementation
PackageRef? getDefiningPackageRef() {
for (PackageRef ref in getPackageRefs()) {
if (ref.name == name) return ref;
}
return null;
}