Migration class

If the database is version then migrator will be called. And the database will be updated to the next version.

Constructors

Migration({required int version, required Migrator migrator})
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
migrator → Migrator
This functions takes in the current database and migrates it to the next version. The database will be updated to the next version. Mutates the database.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
version → int
The version of the database that this migration will run on.
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