TImageAsset constructor
const
TImageAsset({
- Key? key,
- required String assetPath,
- double? size,
- double borderRadius = 5,
- String? defaultAssetsPath,
- AssetBundle? bundle,
- Widget frameBuilder(
- BuildContext context,
- Widget child,
- int? frame,
- bool wasSynchronouslyLoaded,
- Widget errorBuilder(
- BuildContext context,
- Object error,
- StackTrace? stackTrace
- double? scale,
- double? width,
- double? height,
- Color? color,
- BoxFit? fit,
- int? cacheWidth,
- 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,
});