DisplayFeatureState enum

State of the display feature, which contains information about the posture for foldable features.

The posture is the shape made by the parts of the flexible screen or physical screen panels. They are inspired by and similar to Android Postures.

Inheritance

Values

unknown → const DisplayFeatureState

The display feature is a DisplayFeatureType.cutout or this state is new and not yet known to Flutter.

postureFlat → const DisplayFeatureState

The foldable device is completely open.

The screen space that is presented to the user is flat.

postureHalfOpened → const DisplayFeatureState

Fold angle is in an intermediate position between opened and closed state.

There is a non-flat angle between parts of the flexible screen or between physical screen panels such that the screens start to face each other.

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
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

Constants

values → const List<DisplayFeatureState>
A constant List of the values in this enum, in order of their declaration.