EventView class

Constructors

EventView({String? actor, String? createdAt, String? id, String? kind, Object? payload, int? seq, String? sessionId})
Returns a new EventView instance.

Properties

actor ↔ String?
Actor is who produced the turn. A write that names nobody takes the calling principal, so this is rarely empty in practice.
getter/setter pair
createdAt ↔ String?
CreatedAt is when the turn was recorded, RFC 3339 in UTC to the second. Seconds are coarse enough that two turns can share one, which is why Seq and not this is the order.
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
id ↔ String?
ID is the event's own handle, minted as "evt_" + 32 hex characters. It identifies the turn; Seq is what ORDERS it.
getter/setter pair
kind ↔ String?
Kind is what the turn IS, from a closed six: message (a model turn), tool-call, spawn (a subagent started), log, status, control (a steering command the running surface consumes). Anything else is refused at the write.
getter/setter pair
payload ↔ Object?
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
seq ↔ int?
Seq is the turn's position in this session's log: monotonic from 1, assigned by the store inside the insert, and unique PER SESSION rather than globally. It is the cursor a reader resumes from after a reconnect — ask for everything after your last-seen seq.
getter/setter pair
sessionId ↔ String?
SessionID is the session this turn belongs to. Carried on every event so a stream frame stands alone — a subscriber watching a whole tree gets turns from several sessions down one connection.
getter/setter pair

Methods

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

Operators

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

Static Methods

fromJson(dynamic value) → EventView?
Returns a new EventView instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<EventView>
mapFromJson(dynamic json) → Map<String, EventView>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<EventView>>

Constants

requiredKeys → const Set<String>
The list of required keys that must be present in a JSON.