TImageFile constructor

const TImageFile({
  1. Key? key,
  2. required String path,
  3. String? defaultAssetsPath,
  4. BoxFit fit = BoxFit.cover,
  5. double? width,
  6. double? height,
  7. double borderRadius = 5,
  8. double? size,
  9. ErrorBuilderCallback? errorBuilder,
  10. FrameBuilderCallback? frameBuilder,
  11. FilterQuality filterQuality = FilterQuality.medium,
  12. int? cacheHeight,
  13. int? cacheWidth,
  14. double scale = 1.0,
  15. String? semanticLabel,
  16. bool excludeFromSemantics = false,
  17. Color? color,
  18. Animation<double>? opacity,
  19. BlendMode? colorBlendMode,
  20. Alignment alignment = Alignment.center,
  21. ImageRepeat repeat = ImageRepeat.noRepeat,
  22. Rect? centerSlice,
  23. bool matchTextDirection = false,
  24. bool gaplessPlayback = false,
  25. 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,
});