WImageCache constructor

WImageCache({
  1. Key? key,
  2. ImageErrorWidgetBuilder? errorBuilder,
  3. Rect? centerSlice,
  4. Color? color,
  5. BlendMode? colorBlendMode,
  6. FilterQuality filterQuality = FilterQuality.high,
  7. ImageFrameBuilder? frameBuilder,
  8. BoxFit? fit,
  9. bool gaplessPlayback = false,
  10. bool isAntiAlias = false,
  11. ImageLoadingBuilder? loadingBuilder,
  12. bool matchTextDirection = false,
  13. Animation<double>? opacity,
  14. ImageRepeat repeat = ImageRepeat.noRepeat,
  15. String? semanticLabel,
  16. bool excludeFromSemantics = false,
  17. required String path,
  18. AlignmentGeometry alignment = Alignment.center,
  19. double? width,
  20. double? heigth,
})

Implementation

WImageCache({
  super.key,
  super.errorBuilder,
  super.centerSlice,
  super.color,
  super.colorBlendMode,
  super.filterQuality = FilterQuality.high,
  super.frameBuilder,
  super.fit,
  super.gaplessPlayback,
  super.isAntiAlias,
  super.loadingBuilder,
  super.matchTextDirection,
  super.opacity,
  super.repeat,
  super.semanticLabel,
  super.excludeFromSemantics,
  required this.path,
  AlignmentGeometry alignment = Alignment.center,
  double? width,
  double? heigth,
}) : super(
        image: AssetImage(path),
        width: width,
        height: heigth,
        alignment: alignment,
      );