sendScreenShot method

void sendScreenShot(
  1. ByteData image,
  2. List<Rect> rects
)

Implementation

void sendScreenShot (ByteData image, List<Rect> rects) async {
  final items = List.generate(rects.length + 1, (i) => i == 0 ? image.buffer.asUint8List() : _pm.rectToMap(rects[i-1]));

  _imageTransferChannel.send(items);
}