instantiateImageCodec method

Future<Codec> instantiateImageCodec (
  1. Uint8List data,
  2. DecoderCallback decode
)

override this method, so that you can handle raw image data, for example, compress

Implementation

Future<ui.Codec> instantiateImageCodec(
    Uint8List data, DecoderCallback decode) async {
  imageData.data = data;
  return await decode(data);
}