defaultFileProviderFactory function
default ImageProviderFactory implementation of ImageType.file
Implementation
ImageProvider? defaultFileProviderFactory(Uri uri, ImageProviderParams params) {
return KrakenResizeImage.resizeIfNeeded(
params.cachedWidth,
params.cachedHeight,
params.objectFit,
FileImage((params as FileImageProviderParams).file)
);
}