CNReservedRegion class
A part of the screen content should stay clear of: the fold (CNReservedRegionKind.division) or the camera (CNReservedRegionKind.occlusion).
- Annotations
Constructors
- CNReservedRegion({required CNReservedRegionKind kind, required Rect frame, required EdgeInsets margins, required bool isActive})
-
Creates a reserved region.
const
Properties
- frame → Rect
-
The region in logical pixels, in the Flutter view's coordinates — the
same space as
MediaQuery.sizeOf(context). It already includes margins.final - hashCode → int
-
The hash code for this object.
no setteroverride
- isActive → bool
-
Whether content should avoid the region right now. A fold is active only
while the device is partially open; flat, content may cross it.
final
- isHorizontal → bool
-
Whether the region runs left to right (a tabletop fold) rather than top
to bottom (a book fold).
no setter
- kind → CNReservedRegionKind
-
Fold or camera.
final
- margins → EdgeInsets
-
The margin the system recommends around the hardware itself.
final
- 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.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override