device property
DeviceInfo?
get
device
Current device information.
Implementation
DeviceInfo? get device => _device;
set
device
(DeviceInfo? value)
Programmatically set virtual device. If you pass null, the real configuration will be used.
Implementation
set device(DeviceInfo? value) {
if (_device?.identifier != value?.identifier) {
_device = value;
renderView.device = value;
_updateVirtualOrientation();
_updateSizeAndPadding();
}
}