DisplayFeatureState enum Null safety
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.
Constructors
- DisplayFeatureState()
-
const
Values
- unknown → const DisplayFeatureState
-
The display feature is a DisplayFeatureType.cutout or this state is new and not yet known to Flutter.
DisplayFeatureState()
- postureFlat → const DisplayFeatureState
-
The foldable device is completely open.
The screen space that is presented to the user is flat.
DisplayFeatureState()
- 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.
DisplayFeatureState()
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent 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.
[unknown, postureFlat, postureHalfOpened]