DeviceSpec class

A logical screen size the app is rendered at.

Constructors

DeviceSpec({required String name, required double width, required double height, required double dpr, double safeTop = 24, double safeBottom = 24})
const

Properties

dpr → double
final
hashCode → int
The hash code for this object.
no setterinherited
height → double
final
name → String
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
safeBottom → double
final
safeTop → double
System insets in dp (status bar / navigation bar). Applied as the view padding so SafeArea and MediaQuery.padding behave as on a device, and drawn as translucent bands on the screenshot.
final
width → double
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, Object?>
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited