RenderImage constructor
- Image? image,
- String? debugImageLabel,
- double? width,
- double? height,
- double scale = 1.0,
- Color? color,
- Animation<
double> ? opacity, - BlendMode? colorBlendMode,
- BoxFit? fit,
- AlignmentGeometry alignment = Alignment.center,
- ImageRepeat repeat = ImageRepeat.noRepeat,
- Rect? centerSlice,
- bool matchTextDirection = false,
- TextDirection? textDirection,
- bool invertColors = false,
- bool isAntiAlias = false,
- FilterQuality filterQuality = FilterQuality.medium,
- 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();
}