decode method
Implementation
Image? decode() {
_lastPixel = 0;
if (!decodeHeader()) {
return null;
}
_decodeImageStream(webp.width, webp.height, true);
_allocateInternalBuffers32b();
image = Image(webp.width, webp.height);
if (!_decodeImageData(
_pixels!, webp.width, webp.height, webp.height, _processRows)) {
return null;
}
return image;
}