loadBuffer method

  1. @protected
  2. @Deprecated('Implement loadImage for image loading. ' 'This feature was deprecated after v3.7.0-1.4.pre.')
ImageStreamCompleter loadBuffer(
  1. T key,
  2. DecoderBufferCallback decode
)

Converts a key into an ImageStreamCompleter, and begins fetching the image.

This method is deprecated. Implement loadImage instead.

The decode callback provides the logic to obtain the codec for the image.

See also:

  • ResizeImage, for modifying the key to account for cache dimensions.

Implementation

@protected
@Deprecated(
  'Implement loadImage for image loading. '
  'This feature was deprecated after v3.7.0-1.4.pre.',
)
ImageStreamCompleter loadBuffer(T key, DecoderBufferCallback decode) {
  return _AbstractImageStreamCompleter();
}