Operation<T> class

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.
no setterinherited
op OperationFn<T>
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

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