CNHinge class
The hinge of a foldable iPhone, as reported by UIHingeInteraction.
- Annotations
Constructors
- CNHinge({required CNHingeStatus status, required double angle})
-
Creates a hinge snapshot.
const
Properties
- angle → double
-
Opening angle in radians: 0 is shut, π is flat.
final
- degrees → double
-
angle in degrees.
no setter
- hashCode → int
-
The hash code for this object.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- status → CNHingeStatus
-
Closed, partially open or fully open.
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