xCreateWhiteImage method
Implementation
Uint8List xCreateWhiteImage(int width, int height) {
List<int> pixels = List.filled(width * height * 3, 255);
Uint8List image = Uint8List.fromList(pixels);
img.Image imgData = img.Image.fromBytes(width: width, height: height, bytes: image.buffer);
Uint8List encodedImage = img.encodeJpg(imgData);
return encodedImage;
}