VersionMigration class
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
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