Retrieves the actual pixel data in the texture and stores in buffer
Future<void> readPixels() async { Uint8List? currentPixels = await _plugin.getPixels(textureId); buffer.setAll(0, currentPixels!); }