detents property

Set<GlassSheetDetent> detents
final

The resting detents this sheet offers. Appearance follows the detent: GlassSheetDetent.small is the peek floor, GlassSheetDetent.medium is content-height glass, GlassSheetDetent.large is screen-height opaque.

• {medium} → half-only glass (Apple Pay / Sign in with Apple) • {large} → full-only opaque, opens straight to full (Maps / Music) • {medium, large} → the default two-stop sheet • {small, medium, large} → adds the maps-style peek floor underneath

Must be non-empty. GlassSheetMode.persistent keeps its peek floor even when GlassSheetDetent.small is absent — a persistent sheet is defined by resting somewhere instead of dismissing. Style the small detent with the peek* params (peekSettings, peekWidth, …).

Implementation

final Set<GlassSheetDetent> detents;