decodeBytes static method
Implementation
static Future<List<int>> decodeBytes(img.Image image) async {
Generator generator = Generator();
List<int> bytes = [];
final imageByte = generator.imageRaster(
image,
needGrayscale: false,
);
bytes += generator.reset();
bytes += imageByte;
return bytes;
}