CommandService class

Constructors

CommandService.new()

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

getAndroidVersion() Map<String, String?>?
getIosVersion() Map<String, String?>?
getVersion(String content) Map<String, String?>?
Gets the version name and build number from the pubspec content. @param {String} content The pubspec file content. @returns {{versionName: String, buildNumber: String?}} The version data, or null if not found.
updateAndroidVersion(String versionName, String buildNumber) bool
updateIosVersion(String versionName, String buildNumber) bool
updateVersion(String newVersionName, String? newBuildNumber) → void
Updates the version in the pubspec.yaml file. @param {String} newVersionName The new version name (e.g., "1.0.1"). @param {String?} newBuildNumber The new build number, or null to keep existing.

Constants

buildHelp → const String
currentHelp → const String
helpHelp → const String
incrementHelp → const String
initHelp → const String
platformCheckHelp → const String
syncHelp → const String