Future<Codec> instantiateImageCodec(Uint8List list)

Instantiates an image codec Codec object.

list is the binary image data (e.g a PNG or GIF binary data). The data can be for either static or animated images.

The returned future can complete with an error if the image decoding has failed.

Source

Future<Codec> instantiateImageCodec(Uint8List list) {
  return _futurize(
    (_Callback<Codec> callback) => _instantiateImageCodec(list, callback)
  );
}