withTerseConstraint method
Returns a copy of this with the same semantics, but with a ^-style
constraint if possible.
Implementation
PackageRange withTerseConstraint() {
final terse = constraint.asCompatibleWithIfPossible();
if (identical(terse, constraint)) return this;
return PackageRange(_ref, terse);
}