load method
Implementation
@override
ImageStreamCompleter load(BoxFitImageKey key, DecoderCallback decode) {
return MultiFrameImageStreamCompleter(
codec: _instantiateImageCodec(key.descriptor,
boxFit: boxFit,
preferredWidth: key.configuration?.size?.width.toInt(),
preferredHeight: key.configuration?.size?.height.toInt(),
),
scale: key.scale,
informationCollector: () {
return <DiagnosticsNode>[
DiagnosticsProperty<ImageProvider>('Image provider', this),
DiagnosticsProperty<BoxFitImageKey>('Image key', key),
];
},
);
}