CachedImage constructor
const
CachedImage({
- Key? key,
- required String imageName,
- double? width,
- double? height,
- BoxFit? fit,
- AlignmentGeometry alignment = Alignment.center,
- ImageRepeat repeat = ImageRepeat.noRepeat,
- bool matchTextDirection = false,
- bool gaplessPlayback = false,
- Color? color,
- BlendMode? colorBlendMode,
- FilterQuality filterQuality = FilterQuality.low,
- int? cacheWidth,
- int? cacheHeight,
- WidgetBuilder? placeholder,
- WidgetBuilder? errorWidget,
- Map<
String, String> ? authHeader,
Implementation
const CachedImage(
{super.key,
// required this.imageBox,
required this.imageName,
this.width,
this.height,
this.fit,
this.alignment = Alignment.center,
this.repeat = ImageRepeat.noRepeat,
this.matchTextDirection = false,
this.gaplessPlayback = false,
this.color,
this.colorBlendMode,
this.filterQuality = FilterQuality.low,
this.cacheWidth,
this.cacheHeight,
this.placeholder,
this.errorWidget,
// required this.baseUrl,
this.authHeader});