AssetEntityImageProvider constructor

const AssetEntityImageProvider(
  1. AssetEntity entity, {
  2. double scale = 1.0,
  3. List<int>? thumbSize = const <int>[200, 200],
  4. bool isOriginal = false,
})

Implementation

const AssetEntityImageProvider(
  this.entity, {
  this.scale = 1.0,
  this.thumbSize = const <int>[
    200,
    200,
  ],
  this.isOriginal = false,
}) : assert(
  isOriginal || thumbSize?.length == 2,
  'thumbSize must contain and only contain two integers when it\'s not original',
);