VersionChecker class

A class to check for new versions of a package.

Constructors

VersionChecker()

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

checkForNewVersion(String packageName, Version currentVersion, {Types type = Types.minor, Version? newVersion}) Future<Version?>
Checks for a new version of the given package and returns the new version if available.
compareVersions(Version current, Version newer, Types type) → Version?
Compares two versions and returns the newer version if it meets the specified update type criteria.
getLatestVersion(String packageName) Future<Version>
Returns the latest version of the given package.
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