UpgradeWrapper class

Wraps the upgrade state of the app.

If hasError is false the upgrade check was successful and state, lastVersion and currentVersion are set accordingly.

If an error occurred hasError is true, state is UpgradeState.unknown and the error reason is returned in error.

Constructors

UpgradeWrapper({required UpgradeState state, String? lastVersion, String? currentVersion, bool hasError = false, Exception? error})

Properties

currentVersion String?
final
error Exception?
final
hasError bool
final
hashCode int
The hash code for this object.
no setterinherited
lastVersion String?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
state UpgradeState
final

Methods

executeUpgrades(Map<String, Function> upgrades) Future<List<String>?>
Wraps the upgrade execution
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