toRange method

PackageRange toRange()

Returns a PackageRange that allows only version of this package.

Implementation

PackageRange toRange() => PackageRange(toRef(), version);