WatchPush class

What the guest says when the thing you are looking at has moved.

Pure Dart, in its own file rather than beside GuestWatch, for the reason every model here is: the guest half imports package:flutter/widgets.dart and fw cannot link that. Both ends encode and decode through this one class, so a field renamed on one side fails to compile on the other — which is the cheap version of the check that setParameter did not have.

Constructors

WatchPush({required String? entryId, required int frame, required int nodes, required int hashMicros, bool structureChanged = false, bool resized = false, bool scrolled = false, WatchBox? geometry})
const

Properties

entryId → String?
Which entry the guest was showing. A push that arrives after a switch describes a demo that is no longer on screen, and only this makes that detectable.
final
frame → int
The guest's own frame counter since the watch started, so a host can see gaps — a run of frames with no push is either nothing moving or events being dropped, and the two look identical without it.
final
geometry → WatchBox?
The watched node's box, when it moved.
final
hashCode → int
The hash code for this object.
no setterinherited
hashMicros → int
What that walk cost, on this frame.
final
nodes → int
How many elements the shape walk touched.
final
resized → bool
The demo was given a different box — so every rect in the tree is out of date, though not one widget in it changed.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
scrolled → bool
Something in the demo scrolled — so the rects below it have all moved, though the shape did not change and neither did the demo's box.
final
structureChanged → bool
The shape of the element tree changed — the host should re-read the tree.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, Object?>
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) → WatchPush