decodeImageFromList function Null safety
- Uint8List list,
- ImageDecoderCallback callback
Loads a single image frame from a byte array into an Image object.
This is a convenience wrapper around instantiateImageCodec. Prefer using instantiateImageCodec which also supports multi frame images and offers better error handling. This function swallows asynchronous errors.
Implementation
void decodeImageFromList(Uint8List list, ImageDecoderCallback callback) {
_decodeImageFromListAsync(list, callback);
}