HingeSpec class

The fold or hinge of a foldable device.

A Axis.vertical hinge describes a book fold such as a Galaxy Z Fold or iPhone Duo; Axis.horizontal describes a flip phone such as a Z Flip. The axis is relative to the screen's DeviceScreen.naturalOrientation and rotates with the device.

Annotations

Constructors

HingeSpec({required Axis axis, double thickness = 0, bool supportsHalfOpen = true})
const

Properties

axis → Axis
Hinge direction in the screen's natural orientation.
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
supportsHalfOpen → bool
Whether the device can rest half opened.
final
thickness → double
Width of the physical gap in logical pixels.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDisplayFeature(Size screen, FoldPosture posture, Axis effectiveAxis) → DisplayFeature
toString() → String
A string representation of this object.
inherited

Operators

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