TImageFile constructor
const
TImageFile({
- Key? key,
- required String path,
- String? defaultAssetsPath,
- BoxFit fit = BoxFit.cover,
- double? width,
- double? height,
- double borderRadius = 5,
- double? size,
- ErrorBuilderCallback? errorBuilder,
- 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 TImageFile({
super.key,
required this.path,
this.defaultAssetsPath,
this.fit = BoxFit.cover,
this.width,
this.height,
this.borderRadius = 5,
this.size,
this.errorBuilder,
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,
});