AssetEntityImage constructor

AssetEntityImage(
  1. AssetEntity entity, {
  2. bool isOriginal = true,
  3. ThumbnailSize? thumbnailSize = pmDefaultGridThumbnailSize,
  4. ThumbnailFormat thumbnailFormat = ThumbnailFormat.jpeg,
  5. int frame = 0,
  6. Key? key,
  7. ImageFrameBuilder? frameBuilder,
  8. ImageLoadingBuilder? loadingBuilder,
  9. ImageErrorWidgetBuilder? errorBuilder,
  10. String? semanticLabel,
  11. bool excludeFromSemantics = false,
  12. double? width,
  13. double? height,
  14. Color? color,
  15. Animation<double>? opacity,
  16. BlendMode? colorBlendMode,
  17. BoxFit? fit,
  18. AlignmentGeometry alignment = Alignment.center,
  19. ImageRepeat repeat = ImageRepeat.noRepeat,
  20. Rect? centerSlice,
  21. bool matchTextDirection = false,
  22. bool gaplessPlayback = false,
  23. bool isAntiAlias = false,
  24. FilterQuality filterQuality = FilterQuality.low,
})

Implementation

AssetEntityImage(
  this.entity, {
  this.isOriginal = true,
  this.thumbnailSize = pmDefaultGridThumbnailSize,
  this.thumbnailFormat = ThumbnailFormat.jpeg,
  this.frame = 0,
  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,
        ),
        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,
      );