FakeFoldableInfo class

Injected measurement service with explicit per-view fixtures.

Use increasing counters in each session and dispose after the test. It does not replace the default static FoldableInfo service.

Inheritance

Constructors

FakeFoldableInfo({required Map<int, FoldableData> views, Map<int, FoldAngles> angles = const {}})
Creates fixtures; angle fixtures must refer to a declared view.

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

dispose() → Future<void>
Closes all fake streams. Calling this again is safe.
forView(FlutterView view) → FoldableView
Returns the shared handle for view. No subscription starts yet. Native Android/iOS support only their engine view; other IDs report noView.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
sendAngles(FoldAngles sample) → void
Publishes newer angle data or starts a new session.
sendData(FoldableData data) → void
Publishes newer layout data or starts a new session.
sendError({required int viewId, required FoldableError error, bool angles = false}) → void
Invalidates affected data and emits a stream error.
toString() → String
A string representation of this object.
inherited

Operators

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