PackageRef class

A reference to a Package, but not any particular version(s) of it.

It knows the name of a package and a Description that is connected with a certain Source. This is what you need for listing available versions of a package. See SystemCache.getVersions.

Constructors

PackageRef(String name, Description description)
Creates a reference to a package with the given name, and description.

Properties

description → Description
final
hashCode int
The hash code for this object.
no setteroverride
isRoot bool
no setter
name String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
source → Source
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString([PackageDetail? detail]) String
A string representation of this object.
override
withConstraint(VersionConstraint constraint) PackageRange

Operators

operator ==(Object other) bool
The equality operator.
override

Static Methods

root(Package package) PackageRef
Creates a reference to the given root package.