FlutterUiObserver class
Local UiObserver over WidgetTester + optional navigation metadata.
- Implemented types
Constructors
- FlutterUiObserver({required WidgetTester tester, required AssertionEngine assertions, required ObservationRegistry registry, required String nextObservationId(), required int currentRevision(), required String? lastFingerprint(), required void markRevision(int revision, String fingerprint), Duration settleTimeout = const Duration(seconds: 5)})
Properties
- assertions → AssertionEngine
-
final
- currentRevision → int Function()
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- lastFingerprint → String? Function()
-
final
- markRevision → void Function(int revision, String fingerprint)
-
final
-
final
- nextObservationId → String Function()
-
final
- registry → ObservationRegistry
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- settleTimeout → Duration
-
final
- tester → WidgetTester
-
final
Methods
-
liveFingerprintFor(
Element element, String? testId) → String - Live fingerprint for ObservationRegistry.revalidate — matches observe identity digests (always includes bounds).
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
observe(
[ObservationOptions options = const ObservationOptions()]) → Future< UiObservation> -
override
-
rebindHandles(
String observationId, Map< String, SnapshotElementHandle> handles) → Map<String, SnapshotElementHandle> -
syncRevisionAfterMutation(
) → Future< void> - Recomputes the session revision after a mutation without semantics churn.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited