AssetEntityImage constructor

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

Implementation

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