VersionMigration class Null safety

Constructors

VersionMigration()

Properties

hashCode int
The hash code for this object.
read-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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 Properties

firstDefaultVersion String
read / write

Static Methods

applicationUpdate(Function updateFunction) Future<void>
If you need a block that runs every time your application version changes, executing the function updatedFunction
migrateToVersion(String version, Function migrationFunction) Future<bool>
Migrate to version version executing the function migrationFunction
reset() → dynamic
Reset in shared preferences the last migrated version and last updated app version