instantiateImageCodec method
- Uint8List data,
- 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);
}