PackageRange constructor

PackageRange(
  1. PackageRef _ref,
  2. VersionConstraint constraint
)

Creates a reference to package with the given name, source, constraint, and description.

Since an ID's description is an implementation detail of its source, this should generally not be called outside of Source subclasses.

Implementation

PackageRange(this._ref, this.constraint);