load method Null safety
- PravatarImage key,
- DecoderCallback decode
Converts a key into an ImageStreamCompleter, and begins fetching the image.
This method is deprecated. Implement loadBuffer for faster image loading. Only one of load and loadBuffer must be implemented, and loadBuffer is preferred.
decode callback provides the logic to obtain the codec for the
- ResizeImage, for modifying the key to account for cache dimensions.
@override ImageStreamCompleter load(PravatarImage key, DecoderCallback decode) => _networkImage.load(key._networkImage, decode);