ImageWidget constructor
const
ImageWidget({
- Key? key,
- required ImageProvider<
Object> image, - ImageFrameBuilder? frameBuilder,
- ImageLoadingBuilder? loadingBuilder,
- ImageErrorWidgetBuilder? errorBuilder,
- String? semanticLabel,
- bool excludeFromSemantics = false,
- required double width,
- required double height,
- Color? color,
- Animation<
double> ? opacity, - BlendMode? colorBlendMode,
- required BoxFit fit,
- AlignmentGeometry alignment = Alignment.center,
- ImageRepeat repeat = ImageRepeat.noRepeat,
- Rect? centerSlice,
- bool matchTextDirection = false,
- bool gaplessPlayback = false,
- bool isAntiAlias = false,
- FilterQuality filterQuality = FilterQuality.low,
- required String? src,
- Widget? errorWidget,
- Widget? loadingWidget,
- int? cacheWidth,
- int? cacheHeight,
- String? assetUrl,
Implementation
const ImageWidget(
{Key? key,
required this.image,
this.frameBuilder,
this.loadingBuilder,
this.errorBuilder,
this.semanticLabel,
this.excludeFromSemantics = false,
required this.width,
required this.height,
this.color,
this.opacity,
this.colorBlendMode,
required this.fit,
this.alignment = Alignment.center,
this.repeat = ImageRepeat.noRepeat,
this.centerSlice,
this.matchTextDirection = false,
this.gaplessPlayback = false,
this.isAntiAlias = false,
this.filterQuality = FilterQuality.low,
required this.src,
this.errorWidget,
this.loadingWidget,
this.cacheWidth,
this.cacheHeight,
this.assetUrl})
: super(key: key);