FoldKit class abstract final

Entry points for reading and listening to the fold.

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

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

angles → Stream<double?>
Every change of the hinge angle in degrees (null when the sensor stops reporting), for code outside widgets. Needs a FoldKitScope.
no setter
changes → Stream<FoldState>
Every change of the app window's fold state, for code outside widgets (analytics, controllers). Needs a FoldKitScope at the top of the app.
no setter
current → FoldState?
The latest state published on changes, or null before the first one.
no setter

Static Methods

of(BuildContext context) → FoldState
The fold state for context; the caller rebuilds when it changes.