DVFold class

A fold or hinge through the screen, as the platform reports it.

Android foldables report theirs through Flutter's display features. The iPhone Duo's reserved regions and hinge arrive through the same list once the iOS side supplies them.

Annotations

Constructors

DVFold({required Rect bounds, required DVFoldState state, required bool occludes})
const

Properties

bounds → Rect
Where the fold is, in the window's logical coordinates. A fold has no width; a hinge that covers pixels does.
final
hashCode → int
The hash code for this object.
no setteroverride
isVertical → bool
A vertical fold splits the screen into left and right.
no setter
occludes → bool
True when the fold hides pixels, so nothing should be laid out in it.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
state → DVFoldState
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

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

Static Methods

fromDisplayFeature(DisplayFeature feature) → DVFold?