LastEventView class
Constructors
- LastEventView({String? actor, String? at, String? kind, String? preview, int? seq})
- Returns a new LastEventView instance.
Properties
- actor ↔ String?
-
Actor is who produced the turn, defaulted to the calling principal when the writer named nobody.
getter/setter pair
- at ↔ String?
-
At is when the turn was recorded, RFC 3339 in UTC to the second.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setteroverride
- kind ↔ String?
-
Kind is what the turn was, from the log's closed six: message, tool-call, spawn, log, status, control.
getter/setter pair
- preview ↔ String?
-
Preview is the first 240 bytes of the event's payload, cut without regard for the JSON inside it — it is a string to SHOW, never a value to parse. Read the detail or the stream for the whole payload.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- seq ↔ int?
-
Seq is that event's position in the session's log — monotonic from 1, per session. A reader holding it can ask the detail or stream reads for everything after it, so this doubles as the list's resume cursor.
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) → LastEventView? -
Returns a new LastEventView instance and imports its values from
valueif it's a Map, null otherwise. -
listFromJson(
dynamic json, {bool growable = false}) → List< LastEventView> -
mapFromJson(
dynamic json) → Map< String, LastEventView> -
mapListFromJson(
dynamic json, {bool growable = false}) → Map< String, List< LastEventView> >
Constants
-
requiredKeys
→ const Set<
String> - The list of required keys that must be present in a JSON.