MyImageProvider

key

DecoderCallback

decode

async

final

Uint8List

bytes

await

bytesFromSomeApi

();

return

decode

bytes

);

class

MyDelegatingProvider

extends

ImageProvider

MyDelegatingProvider

MyDelegatingProvider

this

provider

);

final

ImageProvder

provider

@override

ImageStreamCompleter

load

MyDelegatingProvider

key

DecoderCallback

decode

return

provider

load