ImageWidget constructor

const ImageWidget({
  1. Key? key,
  2. required ImageProvider<Object> image,
  3. ImageFrameBuilder? frameBuilder,
  4. ImageLoadingBuilder? loadingBuilder,
  5. ImageErrorWidgetBuilder? errorBuilder,
  6. String? semanticLabel,
  7. bool excludeFromSemantics = false,
  8. required double width,
  9. required double height,
  10. Color? color,
  11. Animation<double>? opacity,
  12. BlendMode? colorBlendMode,
  13. required BoxFit fit,
  14. AlignmentGeometry alignment = Alignment.center,
  15. ImageRepeat repeat = ImageRepeat.noRepeat,
  16. Rect? centerSlice,
  17. bool matchTextDirection = false,
  18. bool gaplessPlayback = false,
  19. bool isAntiAlias = false,
  20. FilterQuality filterQuality = FilterQuality.low,
  21. required String? src,
  22. Widget? errorWidget,
  23. Widget? loadingWidget,
  24. int? cacheWidth,
  25. int? cacheHeight,
  26. 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);