RenderImage constructor

RenderImage({
  1. Image? image,
  2. String? debugImageLabel,
  3. double? width,
  4. double? height,
  5. double scale = 1.0,
  6. Color? color,
  7. Animation<double>? opacity,
  8. BlendMode? colorBlendMode,
  9. BoxFit? fit,
  10. AlignmentGeometry alignment = Alignment.center,
  11. ImageRepeat repeat = ImageRepeat.noRepeat,
  12. Rect? centerSlice,
  13. bool matchTextDirection = false,
  14. TextDirection? textDirection,
  15. bool invertColors = false,
  16. bool isAntiAlias = false,
  17. FilterQuality filterQuality = FilterQuality.medium,
  18. BlendMode blendMode = BlendMode.srcOver,
})

Creates a render box that displays an image.

The textDirection argument must not be null if alignment will need resolving or if matchTextDirection is true.

Implementation

RenderImage({
  this._image,
  this.debugImageLabel,
  this._width,
  this._height,
  this._scale = 1.0,
  this._color,
  this._opacity,
  this._colorBlendMode,
  this._fit,
  this._alignment = Alignment.center,
  this._repeat = ImageRepeat.noRepeat,
  this._centerSlice,
  this._matchTextDirection = false,
  this._textDirection,
  this._invertColors = false,
  this._isAntiAlias = false,
  this._filterQuality = FilterQuality.medium,
  this._blendMode = BlendMode.srcOver,
}) {
  _updateColorFilter();
}