DeviceConfig class

Constructors

DeviceConfig({Device mobile = const Device(x: DeviceInfo.mobileX, y: DeviceInfo.mobileY, fontVariant: DeviceInfo.mobileVariant, name: 'Mobile'), Device tab = const Device(x: DeviceInfo.tabX, y: DeviceInfo.tabY, fontVariant: DeviceInfo.tabVariant, name: 'Tab'), Device laptop = const Device(x: DeviceInfo.laptopX, y: DeviceInfo.laptopY, fontVariant: DeviceInfo.laptopVariant, name: 'Laptop'), Device desktop = const Device(x: DeviceInfo.desktopX, y: DeviceInfo.desktopY, fontVariant: DeviceInfo.desktopVariant, name: 'Desktop'), Device tv = const Device(x: DeviceInfo.tvX, y: DeviceInfo.tvY, fontVariant: DeviceInfo.tvVariant, name: 'TV')})
const

Properties

desktop Device
final
hashCode int
The hash code for this object.
no setterinherited
isAndroid bool
no setter
isFuchsia bool
no setter
isIOS bool
no setter
isLinux bool
no setter
isMacOS bool
no setter
isWindows bool
no setter
laptop Device
final
mobile Device
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tab Device
final
tv Device
final

Methods

isDesktop(double cx, double cy) bool
isDevice(Device device, double cx, double cy) bool
isLaptop(double cx, double cy) bool
isMobile(double cx, double cy) bool
isTab(double cx, double cy) bool
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