VergateEvaluator class abstract final

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):

  1. Maintenance
  2. Force update (current < min_version)
  3. Soft update (current < latest_version)
  4. 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 config for the installed currentVersion.