ResolvedPackage class final
A package pub resolved, and where it is on disk.
Constructors
- ResolvedPackage(String name, String rootPath, String libPath)
-
nameatrootPath.const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- isInPubCache → bool
-
Whether it lives in pub's shared cache, where nothing may be edited.
no setter
- libPath → String
-
Its
lib/folder, absolute.final - name → String
-
The package's name.
final
- rootPath → String
-
Its folder, absolute, with
/between parts.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- version → Version?
-
The version its pubspec declares, or null when it declares none (or
it can't be read).
no setter
Methods
-
inPubCache(
{Map< String, String> ? environment}) → bool -
Whether it lives in pub's shared cache: the default one, or the one
PUB_CACHEnames inenvironment(this process's by default). -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited