discontinuedPackage pubspec2 has been discontinued and replaced by pubspec_manager.

ExternalHostedReference constructor

ExternalHostedReference(
  1. String? name,
  2. String? url,
  3. VersionConstraint versionConstraint
)

Implementation

ExternalHostedReference(this.name, this.url, this.versionConstraint);