GlassSheetPlacement enum

Where a sheet sits across a screen with room on either side of it.

Mirrors SwiftUI's presentationPlacement(_:). Only iPhone Duo's inner display has that room today: in its vertical bar strip layout (GlassVerticalBar) a sheet in a regular width is a card as wide as the display's shorter side less its margins — 653pt on the inner display in landscape — and this decides where the card sits. Everywhere else a sheet spans the width, the outer display in landscape included, and this is not read.

Inheritance
Available extensions

Values

automatic → const GlassSheetPlacement

The system decides: the card is centred, as natively.

center → const GlassSheetPlacement

The card is centred on the screen.

leading → const GlassSheetPlacement

The card sits against the leading edge.

trailing → const GlassSheetPlacement

The card sits against the trailing edge.

Where the strip is on that side the card covers it, and the sheet's own bar moves into the strip — the one placement on the inner display whose toolbar goes vertical, as natively.

Properties

hashCode → int
The hash code for this object.
no setterinherited
index → int
A numeric identifier for the enumerated value.
no setterinherited
name → String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
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.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Constants

values → const List<GlassSheetPlacement>
A constant List of the values in this enum, in order of their declaration.