Screen class

The Screen class can be used to create your own devices as well as simply the sizes for the widgets you want to test.

Constructors

Screen({required Size size, double devicePixelRatio = 1.0, double textScaleFactor = 1.0, Brightness platformBrightness = Brightness.light, EdgeInsets safeArea = EdgeInsets.zero, bool disableAnimations = true, String? name})
const

Properties

devicePixelRatio double
final
disableAnimations bool
final
hashCode int
The hash code for this object.
no setterinherited
name String?
final
platformBrightness Brightness
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
safeArea EdgeInsets
final
size Size
final
textScaleFactor double
final

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