ScreenPresets class

Preset configuration for screen previews

Inheritance

Constructors

ScreenPresets.new({DeviceType deviceType = DeviceType.iPhone16, bool isLandscape = false})
const

Properties

backgroundColor Color
Get the initial background color
no setterinherited
deviceName String
Get the device name
no setter
deviceType DeviceType
Initial device type
final
hashCode int
The hash code for this object.
no setterinherited
initialHeight double
Get the initial height for this preset
no setteroverride
initialWidth double
Get the initial width for this preset
no setteroverride
isLandscape bool
Initial orientation (true for landscape, false for portrait)
final
isScreen bool
Returns true if this preset is for a screen, false for a component
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.
inherited