PubspecParser class

A utility class responsible for parsing dependencies from a pubspec.yaml file.

This class reads the project's pubspec.yaml file and extracts both regular and development dependencies, returning them as a set of package names.

Constructors

PubspecParser.new({String filePath = 'pubspec.yaml'})
Creates a new instance of PubspecParser.

Properties

filePath String
Path to the pubspec.yaml file.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getDependencies() Future<Set<String>>
Retrieves all dependencies listed in the pubspec.yaml file.
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