PubspecParser class

Parses pubspec.yaml (and optionally pubspec.lock) into a PackageManifest with fully-populated dependency maps.

Properties

hashCode int
The hash code for this object.
no setterinherited
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.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

fromDirectory(Directory dir) PackageManifest
Parse the pubspec.yaml in dir and return a PackageManifest. If pubspec.lock exists alongside it, exact resolved versions are also populated in PackageManifest.resolvedVersions.
fromString(String content) PackageManifest
Parse a pubspec.yaml string into a PackageManifest.