decodeImageFromList function

void decodeImageFromList(
  1. Uint8List list,
  2. 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);
}