discontinuedPackage pubspec2 has been discontinued and replaced by pubspec_manager.

HostedReference constructor

HostedReference(
  1. VersionConstraint versionConstraint
)

Implementation

HostedReference(this.versionConstraint);