Operation<T> class Null safety

An operation op along with its associated errorStrategy.

Normally, this would represent one-half of Migration, i.e. either the forward (upgrade) operation or the reverse (downgrade) operation.

Constructors

Operation(OperationFn<T> op, {MigrationErrorStrategy errorStrategy = MigrationErrorStrategy.Throw})
Construct an operation from its OperationFn fn and errorStrategy.

Properties

errorStrategy MigrationErrorStrategy
final
hashCode int
The hash code for this object.
read-onlyinherited
op OperationFn<T>
final
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

call(Database db) Future<T>
Execute the operation (op) against the database db.
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