SqliteMigration class

A migration for a single database version.

Constructors

SqliteMigration(int toVersion, SqliteMigrationFunction fn, {SqliteDownMigration? downMigration})

Properties

downMigration SqliteDownMigration?
Optional: Add a down migration to allow this migration to be reverted if the user installs an older version.
getter/setter pair
fn SqliteMigrationFunction
Function to execute for the migration.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
toVersion int
Database version that this migration upgrades to.
final

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