TCacheImage constructor
const
TCacheImage({
- Key? key,
- required String url,
- String? defaultAssetsPath,
- LoadingBuilderCallback? loadingBuilder,
- Widget onProgressLoader(
- double progress
- BoxFit fit = BoxFit.cover,
- double? width,
- double? height,
- double borderRadius = 5,
- double? size,
- ErrorBuilderCallback? errorBuilder,
- Widget placeholder(
- String message
- FrameBuilderCallback? frameBuilder,
- FilterQuality filterQuality = FilterQuality.medium,
- int? cacheHeight,
- int? cacheWidth,
- double scale = 1.0,
- String? semanticLabel,
- bool excludeFromSemantics = false,
- Color? color,
- Animation<
double> ? opacity, - BlendMode? colorBlendMode,
- Alignment alignment = Alignment.center,
- ImageRepeat repeat = ImageRepeat.noRepeat,
- Rect? centerSlice,
- bool matchTextDirection = false,
- bool gaplessPlayback = false,
- 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,
});