AssetEntityImageProvider constructor

const AssetEntityImageProvider(
  1. AssetEntity entity, {
  2. bool isOriginal = true,
  3. ThumbnailSize? thumbnailSize = PMConstants.vDefaultGridThumbnailSize,
  4. 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",
      );