AssetEntityImage constructor
AssetEntityImage(
- AssetEntity entity, {
- bool isOriginal = true,
- ThumbnailSize? thumbnailSize = pmDefaultGridThumbnailSize,
- ThumbnailFormat thumbnailFormat = ThumbnailFormat.jpeg,
- int frame = 0,
- PMProgressHandler? progressHandler,
- Key? key,
- ImageFrameBuilder? frameBuilder,
- ImageLoadingBuilder? loadingBuilder,
- ImageErrorWidgetBuilder? errorBuilder,
- String? semanticLabel,
- bool excludeFromSemantics = false,
- double? width,
- double? height,
- Color? color,
- Animation<
double> ? opacity, - BlendMode? colorBlendMode,
- BoxFit? fit,
- AlignmentGeometry alignment = Alignment.center,
- ImageRepeat repeat = ImageRepeat.noRepeat,
- Rect? centerSlice,
- bool matchTextDirection = false,
- bool gaplessPlayback = false,
- bool isAntiAlias = false,
- FilterQuality filterQuality = FilterQuality.low,
Implementation
AssetEntityImage(
AssetEntity entity, {
bool isOriginal = true,
ThumbnailSize? thumbnailSize = pmDefaultGridThumbnailSize,
ThumbnailFormat thumbnailFormat = ThumbnailFormat.jpeg,
int frame = 0,
PMProgressHandler? progressHandler,
Key? key,
ImageFrameBuilder? frameBuilder,
ImageLoadingBuilder? loadingBuilder,
ImageErrorWidgetBuilder? errorBuilder,
String? semanticLabel,
bool excludeFromSemantics = false,
double? width,
double? height,
Color? color,
Animation<double>? opacity,
BlendMode? colorBlendMode,
BoxFit? fit,
AlignmentGeometry alignment = Alignment.center,
ImageRepeat repeat = ImageRepeat.noRepeat,
Rect? centerSlice,
bool matchTextDirection = false,
bool gaplessPlayback = false,
bool isAntiAlias = false,
FilterQuality filterQuality = FilterQuality.low,
}) : super(
key: key,
image: AssetEntityImageProvider(
entity,
isOriginal: isOriginal,
thumbnailSize: thumbnailSize,
thumbnailFormat: thumbnailFormat,
frame: frame,
progressHandler: progressHandler,
),
frameBuilder: frameBuilder,
loadingBuilder: loadingBuilder,
errorBuilder: errorBuilder,
semanticLabel: semanticLabel,
excludeFromSemantics: excludeFromSemantics,
width: width,
height: height,
color: color,
opacity: opacity,
colorBlendMode: colorBlendMode,
fit: fit,
alignment: alignment,
repeat: repeat,
centerSlice: centerSlice,
matchTextDirection: matchTextDirection,
gaplessPlayback: gaplessPlayback,
isAntiAlias: isAntiAlias,
filterQuality: filterQuality,
);