SessionProgress class

Constructors

SessionProgress({String? activity, String? at, bool? estimated, int? pct, String? phase})
Returns a new SessionProgress instance.

Properties

activity ↔ String?
Activity is the one line saying what the run is doing right now ("running the reaper's tests"), up to 120 characters, in the model's words. Empty when nothing has estimated it yet.
getter/setter pair
at ↔ String?
At is when this was determined, RFC 3339 in UTC to the second. Read it as the estimate's AGE: an estimate is not refreshed while nothing has happened, and a stale one beside a run that is still moving is itself worth seeing. Empty when nothing has estimated it yet.
getter/setter pair
estimated ↔ bool?
Estimated says a MODEL produced this, from the run's transcript, and it may be wrong. False means the session's own row said it: a finished run is 100% because it finished, not because anything guessed. Never treat a true here as a measurement — it is the reason to look, not the answer.
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
pct ↔ int?
Pct is how much of the run is done, 0 to 100. THE KEY IS ABSENT when progress is indeterminate — a run nobody can estimate is not a run that has done nothing, and rendering the second for the first is the mistake this omission exists to make impossible. Read phase before reaching for it.
getter/setter pair
phase ↔ String?
Phase is what shape the run is in: running, blocked, done, error, or unknown when nothing has estimated it yet. blocked means the transcript shows the run waiting on something — an approval, a credential, an answer — which is the one state the running surface cannot report about itself. error only ever comes from the session's own terminal status.
getter/setter pair
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
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) → SessionProgress?
Returns a new SessionProgress instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<SessionProgress>
mapFromJson(dynamic json) → Map<String, SessionProgress>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<SessionProgress>>

Constants

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