TImageAsset constructor

const TImageAsset({
  1. Key? key,
  2. required String assetPath,
  3. double? size,
  4. double borderRadius = 5,
  5. String? defaultAssetsPath,
  6. AssetBundle? bundle,
  7. Widget frameBuilder(
    1. BuildContext context,
    2. Widget child,
    3. int? frame,
    4. bool wasSynchronouslyLoaded,
    )?,
  8. Widget errorBuilder(
    1. BuildContext context,
    2. Object error,
    3. StackTrace? stackTrace
    )?,
  9. double? scale,
  10. double? width,
  11. double? height,
  12. Color? color,
  13. BoxFit? fit,
  14. int? cacheWidth,
  15. int? cacheHeight,
})

Implementation

const TImageAsset({
  super.key,
  required this.assetPath,
  this.size,
  this.borderRadius = 5,
  this.defaultAssetsPath,
  this.bundle,
  this.frameBuilder,
  this.errorBuilder,
  this.scale,
  this.width,
  this.height,
  this.color,
  this.fit,
  this.cacheWidth,
  this.cacheHeight,
});