WImageCache constructor
WImageCache({
- Key? key,
- ImageErrorWidgetBuilder? errorBuilder,
- Rect? centerSlice,
- Color? color,
- BlendMode? colorBlendMode,
- FilterQuality filterQuality = FilterQuality.high,
- ImageFrameBuilder? frameBuilder,
- BoxFit? fit,
- bool gaplessPlayback = false,
- bool isAntiAlias = false,
- ImageLoadingBuilder? loadingBuilder,
- bool matchTextDirection = false,
- Animation<
double> ? opacity, - ImageRepeat repeat = ImageRepeat.noRepeat,
- String? semanticLabel,
- bool excludeFromSemantics = false,
- required String path,
- AlignmentGeometry alignment = Alignment.center,
- double? width,
- 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,
);