Migratable class Null safety

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. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
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 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. [...]
inherited