PackageRef class
representation of a package reference
a PackageRef can be:
- a directory path pointing to the sources of a package
- a reference to pub (like pub://dart_apitool/0.1.2)
Constructors
- PackageRef(String ref)
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- isDirectoryPath → bool
-
determines if this reference references a package directory
no setter
- isPubRef → bool
-
determines if this reference references a pub packaage
no setter
- pubPackage → String?
-
(only valid if isPubRef) gets the package name from the pub ref
no setter
- pubVersion → String?
-
(only valid if isPubRef) gets the package version from the pub ref
no setter
- ref → String
-
the actual string of this reference
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited