DeviceConfig constructor
const
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'),
Constructs a new instance of DeviceConfig.
The parameters mobile
, tab
, laptop
, desktop
, and tv
represent
configurations for different types of devices.
Implementation
const DeviceConfig({
this.mobile = const Device(
x: DeviceInfo.mobileX,
y: DeviceInfo.mobileY,
fontVariant: DeviceInfo.mobileVariant,
name: 'Mobile',
),
this.tab = const Device(
x: DeviceInfo.tabX,
y: DeviceInfo.tabY,
fontVariant: DeviceInfo.tabVariant,
name: 'Tab',
),
this.laptop = const Device(
x: DeviceInfo.laptopX,
y: DeviceInfo.laptopY,
fontVariant: DeviceInfo.laptopVariant,
name: 'Laptop',
),
this.desktop = const Device(
x: DeviceInfo.desktopX,
y: DeviceInfo.desktopY,
fontVariant: DeviceInfo.desktopVariant,
name: 'Desktop',
),
this.tv = const Device(
x: DeviceInfo.tvX,
y: DeviceInfo.tvY,
fontVariant: DeviceInfo.tvVariant,
name: 'TV',
),
});