AddPathDependency class final

Adds a path dependency to pubspec.yaml.

Useful when a plugin ships a companion package that should be referenced by relative path rather than a published version.

Example

AddPathDependency(name: 'my_lib', path: '../my_lib')
Inheritance

Constructors

AddPathDependency({required String name, required String path})
Creates an AddPathDependency operation.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
name String
The package name as it appears in pubspec.yaml.
final
path String
The relative filesystem path to the package root.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

describe() String
Returns a human-readable dry-run line for this operation.
override
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