Pubspec class

A parsed pubspec.yaml: the package name plus every declared dependency, across all three blocks.

Properties

dependencies → Set<String>
Names declared under dependencies, dev_dependencies and dependency_overrides: an override is as much a licence edge as a dependency.
final
directory → String
final
hashCode → int
The hash code for this object.
no setterinherited
name → String
final
pathDependencies → Map<String, String>
The subset declared with a path:, mapped to the absolute directory — the edges a transitive walk can actually follow without a resolved package graph.
final
runtimeDependencies → Set<String>
Names declared under dependencies alone: the edges a package brings into somebody else's resolved graph. A hosted package's dev dependencies are never resolved for its consumers, so a walk through a hosted package follows only these.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sdkDependencies → Set<String>
The subset declared with an sdk: (flutter, flutter_test, …) — resolved by the SDK rather than by pub, and so never "unresolved".
final

Methods

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

Static Methods

read(String packageDir) → Pubspec?