DevicePresets class abstract final

The built-in device preset catalog.

Static const entries: unreferenced presets tree-shake away. Metrics are logical pixels; iOS landscape insets follow real UIKit behavior (notch/island mirrored to the sides, 21px home indicator).

Properties

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

Static Methods

byId(String id) DevicePreset?
Returns the built-in preset with the given id, or null.

Constants

all → const List<DevicePreset>
All built-in presets.
galaxyS24 → const DevicePreset
Samsung Galaxy S24 — punch-hole, gesture navigation.
galaxyS25 → const DevicePreset
Samsung Galaxy S25 — punch-hole, gesture navigation.
galaxyTabS10Plus → const DevicePreset
Samsung Galaxy Tab S10+.
galaxyTabS11 → const DevicePreset
Samsung Galaxy Tab S11.
iPadAir11 → const DevicePreset
iPad Air 11" (M3).
iPadAir13 → const DevicePreset
iPad Air 13" (M3).
iPadMini → const DevicePreset
iPad mini (6th/7th generation).
iPadPro11 → const DevicePreset
iPad Pro 11" (M4).
iPadPro13 → const DevicePreset
iPad Pro 13" (M4).
iPhone16 → const DevicePreset
iPhone 16 — Dynamic Island.
iPhone16e → const DevicePreset
iPhone 16e — notch, the 6.1" entry model.
iPhone16Plus → const DevicePreset
iPhone 16 Plus — Dynamic Island, 6.7" display.
iPhone16Pro → const DevicePreset
iPhone 16 Pro — Dynamic Island.
iPhone16ProMax → const DevicePreset
iPhone 16 Pro Max — Dynamic Island.
iPhone17 → const DevicePreset
iPhone 17 — Dynamic Island, 6.3" display.
iPhone17e → const DevicePreset
iPhone 17e — notch, the 6.1" entry model.
iPhone17Pro → const DevicePreset
iPhone 17 Pro — Dynamic Island, 6.3" display.
iPhoneAir → const DevicePreset
iPhone Air — Dynamic Island, 6.5" display.
largeDesktopWindow → const DevicePreset
A large desktop window: 1920×1080 at 2x.
pixel9 → const DevicePreset
Google Pixel 9 — gesture navigation.
pixel10 → const DevicePreset
Google Pixel 10 — gesture navigation.
smallDesktopWindow → const DevicePreset
A small desktop window: 1024×640 at 1x.