AssetEntityImageProvider constructor

AssetEntityImageProvider(
  1. AssetEntity entity, {
  2. double scale = 1.0,
  3. Size? thumbSize = const Size(80, 80),
  4. bool isOriginal = true,
})

Implementation

AssetEntityImageProvider(
  this.entity, {
  this.scale = 1.0,
  this.thumbSize = const Size(80, 80),
  this.isOriginal = true,
}) : assert(
        isOriginal || thumbSize != null,
        'thumbSize must contain and only contain two integers when it\'s not original',
      ) {
  if (!isOriginal && thumbSize == null) {
    throw ArgumentError(
      'thumbSize must contain and only contain two integers when it\'s not original',
    );
  }
}