Image constructor

const Image({
  1. Key? key,
  2. required ImageProvider<Object> image,
  3. double? width,
  4. double? height,
  5. BoxFit? fit,
  6. AlignmentGeometry alignment = Alignment.center,
  7. ImageRepeat repeat = ImageRepeat.noRepeat,
  8. Color? color,
  9. BlendMode? colorBlendMode,
  10. FilterQuality filterQuality = FilterQuality.low,
  11. bool matchTextDirection = false,
  12. String? semanticLabel,
  13. bool excludeFromSemantics = false,
  14. Widget frameBuilder(
    1. BuildContext,
    2. Widget,
    3. int?,
    4. bool,
    )?,
  15. Widget errorBuilder(
    1. BuildContext,
    2. Object,
    3. StackTrace?
    )?,
  16. double? opacity,
  17. Rect? centerSlice,
  18. required bool gaplessPlayback,
  19. required bool isAntiAlias,
  20. int? cacheWidth,
  21. int? cacheHeight,
})

Implementation

const Image({
  super.key,
  required this.image,
  this.width,
  this.height,
  this.fit,
  this.alignment = Alignment.center,
  this.repeat = ImageRepeat.noRepeat,
  this.color,
  this.colorBlendMode,
  this.filterQuality = FilterQuality.low,
  this.matchTextDirection = false,
  this.semanticLabel,
  this.excludeFromSemantics = false,
  this.frameBuilder,
  this.errorBuilder,
  this.opacity,
  this.centerSlice,
  required this.gaplessPlayback,
  required this.isAntiAlias,
  this.cacheWidth,
  this.cacheHeight,
});