Migration guide

Classes that subclass ImageProvider must implement the loadBuffer method for
loading assets. Classes that delegate to or call the methods of an
ImageProvider directly must use loadBuffer instead of load.

Code before migration:

class

MyImageProvider

extends

ImageProvider

MyImageProvider

@override

ImageStreamCompleter

load

MyImageProvider

key

DecoderCallback

decode

return

MultiFrameImageStreamCompleter

codec:

_loadData

key

decode

),

);

Future

ui

Codec

_loadData

MyImageProvider

key

DecoderCallback