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,
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({
ui.Image? image,
this.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,
}) : _image = image,
_width = width,
_height = height,
_scale = scale,
_color = color,
_opacity = opacity,
_colorBlendMode = colorBlendMode,
_fit = fit,
_alignment = alignment,
_repeat = repeat,
_centerSlice = centerSlice,
_matchTextDirection = matchTextDirection,
_invertColors = invertColors,
_textDirection = textDirection,
_isAntiAlias = isAntiAlias,
_filterQuality = filterQuality {
_updateColorFilter();
}