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
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