SoloTransition<S extends Object> class final

One state change, with who made it.

What a journal of previous → current alone cannot answer is which operation the change belonged to, and that cannot be worked out from the outside: a controller has children as well as a root job, and an externalSetState belongs to no job at all. job is that answer, and revision puts the changes in order — a hook may change the state again from inside this one, and the nested change carries a higher number.

Annotations
  • @immutable

Constructors

SoloTransition({required S previous, required S current, required Job<Object?>? job, required int revision})
Creates a transition; the engine makes these, a domain reads them.
const

Properties

current → S
The state after it.
final
hashCode → int
The hash code for this object.
no setterinherited
job → Job<Object?>?
The job the change belongs to, or null for an externalSetState.
final
previous → S
The state before the change.
final
revision → int
How many changes this controller has made, this one included.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

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