PubspecManager class
This class is used to manage the pubspec.yaml
file.
It provides functionality to read and write the file.
Constructors
- PubspecManager()
-
The constructor takes no arguments and sets the
_filepath
to the path to thepubspec.yaml
file in the current directory.
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
-
load(
) → Map< String, dynamic> -
Reads the
pubspec.yaml
file and returns the content as a Map. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
save(
Map< String, dynamic> pubspec) → void -
Writes the
pubspec.yaml
file with the givenpubspec
. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited