CachedImage constructor

const CachedImage({
  1. Key? key,
  2. required String imageName,
  3. double? width,
  4. double? height,
  5. BoxFit? fit,
  6. AlignmentGeometry alignment = Alignment.center,
  7. ImageRepeat repeat = ImageRepeat.noRepeat,
  8. bool matchTextDirection = false,
  9. bool gaplessPlayback = false,
  10. Color? color,
  11. BlendMode? colorBlendMode,
  12. FilterQuality filterQuality = FilterQuality.low,
  13. int? cacheWidth,
  14. int? cacheHeight,
  15. WidgetBuilder? placeholder,
  16. WidgetBuilder? errorWidget,
  17. 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});