Migratable class

Annotation required by the generator for AOT discoverability. Decorates classes that extends Migration.

Constructors

Migratable({required List<MigrationCommand> down, required List<MigrationCommand> up, required String version})
const

Properties

down List<MigrationCommand>
The Migration down commands. Must match the annotated Migration up.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
up List<MigrationCommand>
The Migration up commands. Must match the annotated Migration up.
final
version String
The Migration version. Must match the annotated Migration version. While int is a more appropriate type, String is used instead to help the generator parse longer integers (such as a timestamp with seconds) when decoding from a constant reader.
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