WorkspacePackage class final

A package found on disk: the workspace root or a workspace package.

Constructors

WorkspacePackage({required String name, required String path, required String relativePath, String? version, String? publishTo, Set<String> dependencies = const {}, Set<String> devDependencies = const {}, bool isWorkspaceMember = false})
const

Properties

dependencies → Set<String>
final
devDependencies → Set<String>
final
hashCode → int
The hash code for this object.
no setterinherited
isPublishable → bool
no setter
isWorkspaceMember → bool
Whether the pubspec has resolution: workspace.
final
name → String
final
path → String
Absolute path of the package directory.
final
publishTo → String?
final
relativePath → String
Path relative to the workspace root, with / separators. . for the workspace root itself.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
version → String?
final

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

Static Methods

read(String directory, {required String root}) → WorkspacePackage?
Reads the package in directory, or returns null when it has no readable pubspec.yaml.