StoreCanvas.of constructor
StoreCanvas.of(
- Device device
The image a device produces at its own ratio, which is the canvas wherever a store's size and a real device's happen to coincide.
Implementation
factory StoreCanvas.of(Device device) => StoreCanvas(
width: (device.width * device.pixelRatio).round(),
height: (device.height * device.pixelRatio).round(),
pixelRatio: device.pixelRatio,
);