AssetEntityImageProvider constructor
AssetEntityImageProvider(
- AssetEntity entity, {
- double scale = 1.0,
- Size? thumbSize = const Size(80, 80),
- 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',
);
}
}