CNSheetDetent class

A resting height of a CNNativeSheet.

Maps to UISheetPresentationController.Detent.

Annotations

Constructors

CNSheetDetent.fraction(double fraction)
A fraction of the largest height the sheet can take, from 0 to 1.
const
CNSheetDetent.height(double points)
A fixed height in points, such as a small sheet that shows only its title and tab bar.
const

Properties

hashCode → int
The hash code for this object.
no setteroverride
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.
override

Constants

collapsed → const CNSheetDetent
Only the tab bar: a sheet with more than one CNSheetPage shrinks to its tab bar, as Find My's does. Approaching this height the page fades out and the tab bar settles in the middle of the sheet; on iOS 26 and later the sheet is drawn as a glass capsule here. A single-page sheet, which has no tab bar, shows only the top of its page.
large → const CNSheetDetent
Nearly the full screen.
medium → const CNSheetDetent
About half the screen.