TDImage constructor
const
TDImage({
- String? imgUrl,
- Key? key,
- TDImageType type = TDImageType.roundedSquare,
- Widget? errorWidget,
- Widget? loadingWidget,
- double? width,
- double? height,
- ImageFrameBuilder? frameBuilder,
- ImageLoadingBuilder? loadingBuilder,
- ImageErrorWidgetBuilder? errorBuilder,
- String? semanticLabel,
- bool excludeFromSemantics = false,
- Color? color,
- Animation<
double> ? opacity, - BlendMode? colorBlendMode,
- AlignmentGeometry alignment = Alignment.center,
- ImageRepeat repeat = ImageRepeat.noRepeat,
- Rect? centerSlice,
- bool matchTextDirection = false,
- bool gaplessPlayback = false,
- bool isAntiAlias = false,
- FilterQuality filterQuality = FilterQuality.low,
- int? cacheHeight,
- int? cacheWidth,
- 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);