DisplayFeatureType enum Null safety
Type of DisplayFeature, describing the DisplayFeature behaviour and if it obstructs the display.
Some types of DisplayFeature, like DisplayFeatureType.fold, can be reported without actually impeding drawing on the screen. They are useful for knowing where the display is bent or has a crease. The DisplayFeature.bounds can be 0-width in such cases.
The shape formed by the screens for types DisplayFeatureType.fold and
DisplayFeatureType.hinge is called the posture and is exposed in
DisplayFeature.state. For example, the DisplayFeatureState.postureFlat posture
means the screens form a flat surface, while DisplayFeatureState.postureFlipped
posture means the screens are facing opposite directions.
Constructors
- DisplayFeatureType()
-
const
Values
- unknown → const DisplayFeatureType
-
DisplayFeature type is new and not yet known to Flutter.
DisplayFeatureType()
- fold → const DisplayFeatureType
-
A fold in the flexible screen without a physical gap.
The bounds for this display feature type indicate where the display makes a crease.
DisplayFeatureType()
- hinge → const DisplayFeatureType
-
A physical separation with a hinge that allows two display panels to fold.
DisplayFeatureType()
- cutout → const DisplayFeatureType
-
A non-displaying area of the screen, usually housing cameras or sensors.
DisplayFeatureType()
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<
DisplayFeatureType> -
A constant List of the values in this enum, in order of their declaration.
[unknown, fold, hinge, cutout]