readPixels method

Future<void> readPixels()

Retrieves the actual pixel data in the texture and stores in buffer

Implementation

Future<void> readPixels() async {
  Uint8List? currentPixels = await _plugin.getPixels(textureId);
  buffer.setAll(0, currentPixels!);
}