GlassSheetDetent enum

The resting heights a sheet may stop at, chosen via GlassModalSheet.detents. Mirrors UIKit's sheet detents:

• medium — the content-height, translucent-glass stop (Apple Pay / Sign in with Apple). Maps to GlassSheetState.half internally. • large — the screen-height, opaque stop (Maps / Music). Maps to GlassSheetState.full.

A sheet declares any non-empty subset: {medium} is half-only glass, {large} is full-only opaque, {medium, large} is the default two-stop sheet, and adding small puts a peek floor underneath.

small is the maps-style resting floor — the state a persistent sheet returns to instead of dismissing. Its styling lives in the top-level peek* params (GlassModalSheet.peekSettings, peekWidth, …) rather than on the detent itself, deliberately: a Set whose members carried per-instance payload would need equality that IGNORES that payload, or detents.contains(small) stops working and two smalls with different settings could sit in one set at once. Keeping the detent a plain enum keeps set membership meaning exactly one thing.

Inheritance
Available extensions

Values

small → const GlassSheetDetent

The peek-floor detent — a small strip at the bottom edge, maps to GlassSheetState.peek.

medium → const GlassSheetDetent

The medium-height glass detent — typically 45% of screen height, maps to GlassSheetState.half.

large → const GlassSheetDetent

The full-screen detent — covers the screen and uses a solid fill, maps to GlassSheetState.full.

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<GlassSheetDetent>
A constant List of the values in this enum, in order of their declaration.