DeviceScreenshot constructor

const DeviceScreenshot({
  1. required DeviceInfo device,
  2. required Uint8List bytes,
  3. required ImageByteFormat format,
})

Creates a new preview screenshot with its associated bytes data, encoded with the given image format for the current device preview.

Implementation

const DeviceScreenshot({
  required this.device,
  required this.bytes,
  required this.format,
});