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