VxMutation<T extends VxStore?> class abstract

An implementation of this class holds the logic for updating the VxStore.

Constructors

VxMutation()
A mutation logic inside perform is executed immediately after creating an object of the mutation.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
status VxStatus?
Status of this current mutation
getter/setter pair
store → T?
Reference to the current instance of Store
no setter

Methods

next(VxMutationBuilder mutationBuilder) → void
Adds the mutationBuilder to the list.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onException(dynamic e, StackTrace s) → void
onException callback receives all the errors with their StackTrace. If assertions are on, which usually means app is in debug mode, then both exception and stack trace is printed. This can be overridden by the mutation implementation.
perform() → dynamic
This function implements the logic of the mutation. It can return any value. If it is a Future it will be awaited. If it is VxEffects object, result will be piped to its VxEffects.fork call.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited