DeviceViewport class

Constructors

DeviceViewport({int width = 1280, int height = 1024, num deviceScaleFactor = 1, bool isMobile = false, bool isLandscape = false, bool hasTouch = false})
const

Properties

deviceScaleFactor num
final
hashCode int
The hash code for this object.
no setteroverride
hasTouch bool
final
height int
final
isLandscape bool
final
isMobile bool
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
width int
final

Methods

copyWith({int? width, int? height, num? deviceScaleFactor, bool? isMobile, bool? isLandscape, bool? hasTouch}) DeviceViewport
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