VersionChecker class
Utility class to check for the latest versions of Flutter packages
Constructors
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
-
compareVersions(
String version1, String version2) → int - Compare two version strings Returns: -1 if version1 < version2, 0 if equal, 1 if version1 > version2
-
formatVersion(
String version) → String - Format version for display
-
getAllLatestVersions(
) → Map< String, String> - Get all latest versions
-
getCurrentVersion(
) → String - Get current version from pubspec.yaml or from installed package
-
getInstalledVersionFromFile(
) → String? - Get the installed version from the version file
-
getLatestCLIVersion(
) → Future< String?> - Get the latest CLI version from GitHub releases
-
getLatestCLIVersionAny(
) → Future< String?> - Get the latest CLI version (tries releases first, then Git, returns the newest)
-
getLatestCLIVersionFromGit(
) → Future< String?> - Get the latest CLI version from Git (fallback if no releases)
-
getLatestCLIVersionFromGitSync(
) → String? - Get version from Git synchronously (for fallback when pubspec.yaml not found locally)
-
getLatestVersion(
String packageName) → String - Get the latest version for a specific package
-
getVersionRecommendations(
) → Map< String, String> - Get version recommendations for packages
-
getVersionSummary(
) → String - Get a summary of all latest versions
-
isLatestVersion(
String packageName, String currentVersion) → bool - Check if a version is the latest
-
isUpdateAvailable(
String currentVersion) → Future< bool> - Check if an update is available
-
saveInstalledVersion(
String version) → void - Save the installed version to a file