Screenshot constructor

const Screenshot({
  1. required Uint8List bytes,
  2. required int width,
  3. required int height,
})

Creates a screenshot from bytes, a PNG of width by height physical pixels.

Implementation

const Screenshot({
  required this.bytes,
  required this.width,
  required this.height,
});