FoldableInfo class abstract

Reads fold/view measurements without owning application layout or state.

Static calls use the engine's implicit view. Use forView for an explicit view or an injected test service. No BuildContext or provider is required.

Implementers

Constructors

FoldableInfo()

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

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.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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

Static Properties

instance → FoldableInfo
The measurement service for this Flutter engine.
final

Static Methods

read({Duration timeout = const Duration(seconds: 5)}) → Future<FoldableData>
Reads the engine's implicit view. No provider or context is needed.
readAngles({Duration timeout = const Duration(seconds: 5)}) → Future<FoldAngles>
Reads angles for the engine's implicit view.
watch() → Stream<FoldableData>
Watches layout data for the engine's implicit view.
watchAngles() → Stream<FoldAngles>
Watches angles separately from layout data.