UiObservation class

Serializable snapshot of the currently rendered UI.

Describes runtime state, not EDL definitions. revision advances when observable UI state changes (text, enabled, visibility, bounds, values, actions, navigation) — not merely because an action completed or because widget IDs / counts changed.

Constructors

UiObservation({int schemaVersion = currentSchemaVersion, required String observationId, required int revision, required DateTime timestamp, required ScreenObservation screen, List<UiElement> elements = const [], UiViewport? viewport, String? screenshotArtifactId, String? observableFingerprint, ObservationCompleteness completeness = const ObservationCompleteness()})
const
UiObservation.fromJson(Map<String, dynamic> json)
factory

Properties

completeness → ObservationCompleteness
final
elements → List<UiElement>
final
hashCode → int
The hash code for this object.
no setterinherited
observableFingerprint → String?
Digest of observable semantic fields used for revision comparison.
final
observationId → String
final
revision → int
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
schemaVersion → int
final
screen → ScreenObservation
final
screenshotArtifactId → String?
final
timestamp → DateTime
final
viewport → UiViewport?
final

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.
inherited

Operators

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

Constants

currentSchemaVersion → const int