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.new(String ref)
Properties
- gitRef → GitRef?
-
(only valid if isGitRef) gets the parsed git reference
no setter
- gitRefString → String?
-
(only valid if isGitRef) gets the branch, tag, or commit from the git ref
no setter
- gitUri → String?
-
(only valid if isGitRef) gets the git URI from the git ref
Removes the git:// scheme and extracts the actual git URL
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- isDirectoryPath → bool
-
determines if this reference references a package directory
no setter
- isGitRef → bool
-
determines if this reference references a git repository
Formats:
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