UpdateResolver class

The decision logic behind every update check, kept in one pure function so the embedded store, the hub, the REST endpoint and the standalone UpdateChecker cannot drift apart on the question that matters most: should this client be told to update?

Getting this wrong is expensive in both directions. Offering a downgrade bricks a fleet; failing to offer a real update leaves known-bad versions running. So the rules are written down once, here, and tested directly.

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

resolve({required String packageName, required Version currentVersion, required ReleaseChannel channel, Release? latest, List<Asset> assets = const [], String? platform}) UpdateInfo
Builds the answer for a client on currentVersion and channel, given the newest release the registry would offer it.
selectAsset(List<Asset> assets, {String? platform}) Asset?
Picks the asset a client on platform should download, or null.