Decides which VergateStatus applies for a given configuration.
This is a pure function of its inputs, so it is easy to unit test.
Priority (highest first):
- Maintenance
- Force update (
current < min_version) - Soft update (
current < latest_version) - Up to date
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
-
evaluate(
{required VergateConfig config, required AppVersion currentVersion, required VergatePlatform platform, DateTime? now}) → VergateStatus -
Evaluates
configfor the installedcurrentVersion.