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.
- For DisplayFeatureType.folds & DisplayFeatureType.hinges, the state is the posture.
- For DisplayFeatureType.cutouts, the state is not used and has the DisplayFeatureState.unknown value.
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
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - 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.