Migration class Null safety

Constructors

Migration({required int version, required List<MigrationCommand> up, required List<MigrationCommand> down})
const

Properties

down List<MigrationCommand>
final
downStatement String
read-only
hashCode int
The hash code for this object. [...]
read-only, override
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
statement String
read-only
up List<MigrationCommand>
final
upStatement String
read-only
version int
Order to run; should be unique and sequential with other Migrations
final

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. [...]
override

Static Methods

fromDartPrimitive(Type type) Column
Convert native Dart to Column
generate(List<MigrationCommand> commands, int version) String
ofDefinition(Column definition) String
Convert Column to SQLite data types
toDartPrimitive(Column definition) Type
Convert Column to native Dart