ObservationRegistry class
Maps observation/element ids to live handles with bounded retention.
Constructors
- ObservationRegistry({int maxObservations = 3})
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- maxObservations → int
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
clear(
) → void -
containsObservation(
String observationId) → bool - Exposed for tests.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
registerObservation(
{required String observationId, required Map< String, SnapshotElementHandle> handles}) → void -
resolve(
{required String observationId, required String elementId}) → SnapshotElementHandle -
revalidate(
{required String observationId, required String elementId, String liveFingerprint(Element element, String? testId)?}) → SnapshotElementHandle -
For snapshot targets, mount-check only on the cached Element.
Observable fingerprint staleness is enforced when the controller
re-observes; immediate content drift is still caught if the Element is
defunct. Full fingerprint compare uses
liveFingerprintwhen provided values differ from storage (callers should pass matching digests). -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited