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.

Inheritance

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.

const DisplayFeatureState(0)
postureFlat → const DisplayFeatureState

The foldable device is completely open.

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

const DisplayFeatureState(1)
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.

const DisplayFeatureState(2)

Properties

hashCode int
The hash code for this object.
read-only, inherited
index int
A numeric identifier for the enumerated value.
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

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]