TimerEffect class
A timer firing. Records the scheduled duration and the actual fire time; the pair is what makes debounce/throttle replayable.
- Inheritance
-
- Object
- EffectRecord
- TimerEffect
Constructors
Properties
- at → DateTime
-
Wall-clock time of the observation. Recorded because replay needs to
reconstruct ordering; not part of the semantics of the effect.
finalinherited
- cancelled ↔ bool
-
Whether the recorded timer was cancelled before it fired (review
fix). The recording side marks this when a debounce/throttle timer
is superseded; replay consumes the record but must NOT invoke the
fire callback — otherwise a cancelled timer fires during replay and
the graph diverges from its own recording.
getter/setter pair
- firedAtMillis → int
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- inputDigest → String
-
SHA-256 fingerprint of the effect's input (e.g. for
Clock.now, the fingerprint of"clock"; for IoEffect, the fingerprint of the request).finalinherited - kind → String
-
The type tag stored in the ledger. Stable across schema versions.
no setteroverride
- ordinal → int
-
Monotonic ordinal within the journal, assigned by EffectJournal.
Used to assert exact consumption during replay.
finalinherited
- outputDigest → String
-
SHA-256 fingerprint of the effect's output (e.g. the epoch millis
for a clock read; the response body for an I/O call).
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scheduled → Duration
-
final
- scheduledAtMillis → int
-
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
payloadJson(
) → Map< String, Object?> -
The variant-specific payload. Called by toJson.
override
-
toJson(
) → Map< String, Object?> -
Serialises this record to its canonical JSON map.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
fromJson(
Map< String, Object?> json) → TimerEffect -
Reconstructs an EffectRecord from toJson's output.
override