TCacheImage constructor

const TCacheImage({
  1. Key? key,
  2. required String url,
  3. String? defaultAssetsPath,
  4. LoadingBuilderCallback? loadingBuilder,
  5. Widget onProgressLoader(
    1. double progress
    )?,
  6. BoxFit fit = BoxFit.cover,
  7. double? width,
  8. double? height,
  9. double borderRadius = 5,
  10. double? size,
  11. ErrorBuilderCallback? errorBuilder,
  12. Widget placeholder(
    1. String message
    )?,
  13. FrameBuilderCallback? frameBuilder,
  14. FilterQuality filterQuality = FilterQuality.medium,
  15. int? cacheHeight,
  16. int? cacheWidth,
  17. double scale = 1.0,
  18. String? semanticLabel,
  19. bool excludeFromSemantics = false,
  20. Color? color,
  21. Animation<double>? opacity,
  22. BlendMode? colorBlendMode,
  23. Alignment alignment = Alignment.center,
  24. ImageRepeat repeat = ImageRepeat.noRepeat,
  25. Rect? centerSlice,
  26. bool matchTextDirection = false,
  27. bool gaplessPlayback = false,
  28. bool isAntiAlias = false,
})

Implementation

const TCacheImage({
  super.key,
  required this.url,
  this.defaultAssetsPath,
  this.loadingBuilder,
  this.onProgressLoader,
  this.fit = BoxFit.cover,
  this.width,
  this.height,
  this.borderRadius = 5,
  this.size,
  this.errorBuilder,
  this.placeholder,
  this.frameBuilder,
  this.filterQuality = FilterQuality.medium,
  this.cacheHeight,
  this.cacheWidth,
  this.scale = 1.0,
  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,
});