DisplayFeatureType enum
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.
Values
- unknown → const DisplayFeatureType
-
DisplayFeature type is new and not yet known to Flutter.
- 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.
- hinge → const DisplayFeatureType
-
A physical separation with a hinge that allows two display panels to fold.
- cutout → const DisplayFeatureType
-
A non-displaying area of the screen, usually housing cameras or sensors.
Properties
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<
DisplayFeatureType> - A constant List of the values in this enum, in order of their declaration.