TDImage constructor

const TDImage({
  1. String? imgUrl,
  2. Key? key,
  3. TDImageType type = TDImageType.roundedSquare,
  4. Widget? errorWidget,
  5. Widget? loadingWidget,
  6. double? width,
  7. double? height,
  8. ImageFrameBuilder? frameBuilder,
  9. ImageLoadingBuilder? loadingBuilder,
  10. ImageErrorWidgetBuilder? errorBuilder,
  11. String? semanticLabel,
  12. bool excludeFromSemantics = false,
  13. Color? color,
  14. Animation<double>? opacity,
  15. BlendMode? colorBlendMode,
  16. AlignmentGeometry alignment = Alignment.center,
  17. ImageRepeat repeat = ImageRepeat.noRepeat,
  18. Rect? centerSlice,
  19. bool matchTextDirection = false,
  20. bool gaplessPlayback = false,
  21. bool isAntiAlias = false,
  22. FilterQuality filterQuality = FilterQuality.low,
  23. int? cacheHeight,
  24. int? cacheWidth,
  25. String? assetUrl,
})

Implementation

const TDImage({
  this.imgUrl,
  Key? key,
  this.type = TDImageType.roundedSquare,
  this.errorWidget,
  this.loadingWidget,
  this.width,
  this.height,
  this.frameBuilder,
  this.loadingBuilder,
  this.errorBuilder,
  this.semanticLabel,
  this.excludeFromSemantics = false,
  this.color,
  this.opacity,
  this.colorBlendMode,
  this.alignment = Alignment.center,
  this.repeat = ImageRepeat.noRepeat,
  this.centerSlice,
  this.matchTextDirection = false,
  this.gaplessPlayback = false,
  this.isAntiAlias = false,
  this.filterQuality = FilterQuality.low,
  this.cacheHeight,
  this.cacheWidth,
  this.assetUrl,
}) : super(key: key);