decodeImage method
Decode the file and extract a single image from it. If the file is
animated, the specified frame
will be decoded. If there was a problem
decoding the file, null is returned.
Implementation
@override
Image? decodeImage(List<int> data, {int frame = 0}) {
if (!isValidFile(data)) return null;
startDecode(data);
return decodeFrame(frame);
}