PubspecVersionChanger class

{@template pubspec_version_changer_template} The PubspecVersionChanger class is used to change the version code of the and version name in a pubspec.yaml file.

Constructors

PubspecVersionChanger({Logger? logger})

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

currentVersion(Directory pubspecRoot) → Version
Gets the current version of 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
updateVersionCode(Directory pubspecRoot, String newVersion) → void
Updates the version of the pubspec.yaml file.

Operators

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