ImageProvder

provider

@override

ImageStreamCompleter

loadBuffer

MyDelegatingProvider

key

DecoderCallback

decode

return

provider

loadBuffer

key

decode

);

In both cases you might choose to keep the previous implementation of ImageProvider.load
to give users of your code time to migrate as well.

Timeline

Landed in version: 3.1.0-0.0.pre.976
In stable release: 3.3.0

References

API documentation:

ImmutableBuffer

ImageProvider

Relevant PRs:

Use immutable buffer for loading asset images