VxMutation<T extends VxStore?> class Null safety

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. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
status VxStatus?
Status of this current mutation
read / write
store → T?
Reference to the current instance of Store
read-only

Methods

next(VxMutationBuilder mutationBuilder) → void
Adds the mutationBuilder to the list.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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