AssetEntityImageProvider constructor
const
AssetEntityImageProvider(
- AssetEntity entity, {
- bool isOriginal = true,
- ThumbnailSize? thumbnailSize = pmDefaultGridThumbnailSize,
- ThumbnailFormat thumbnailFormat = ThumbnailFormat.jpeg,
- int frame = 0,
- PMProgressHandler? progressHandler,
Implementation
const AssetEntityImageProvider(
this.entity, {
this.isOriginal = true,
this.thumbnailSize = pmDefaultGridThumbnailSize,
this.thumbnailFormat = ThumbnailFormat.jpeg,
this.frame = 0,
this.progressHandler,
}) : assert(
isOriginal || thumbnailSize != null,
"thumbSize must not be null when it's not original",
);