...

Code after the migration:

class

MyImageProvider

extends

ImageProvider

Object

@override

ImageStream

createStream

ImageConfiguration

configuration

// Return stream, or use super.createStream(),

// which returns a new ImageStream.

@override

void

resolveStreamForKey

ImageConfiguration

configuration

ImageStream

stream

Object

key

ImageErrorListener

handleError

// Interact with the cache, use the key, potentially call `load`,

// and report any errors back through `handleError`.

...

Timeline