RenderImage constructor

RenderImage({Image image, double width, double height, double scale: 1.0, Color color, BlendMode colorBlendMode, BoxFit fit, AlignmentGeometry alignment: Alignment.center, ImageRepeat repeat: ImageRepeat.noRepeat, Rect centerSlice, bool matchTextDirection: false, TextDirection textDirection, bool invertColors: false, FilterQuality filterQuality: FilterQuality.low })

Creates a render box that displays an image.

The scale, alignment, repeat, matchTextDirection and filterQuality arguments must not be null. The textDirection argument must not be null if alignment will need resolving or if matchTextDirection is true.

Implementation

RenderImage({
  ui.Image image,
  double width,
  double height,
  double scale = 1.0,
  Color color,
  BlendMode colorBlendMode,
  BoxFit fit,
  AlignmentGeometry alignment = Alignment.center,
  ImageRepeat repeat = ImageRepeat.noRepeat,
  Rect centerSlice,
  bool matchTextDirection = false,
  TextDirection textDirection,
  bool invertColors = false,
  FilterQuality filterQuality = FilterQuality.low
}) : assert(scale != null),
     assert(repeat != null),
     assert(alignment != null),
     assert(filterQuality != null),
     assert(matchTextDirection != null),
     _image = image,
     _width = width,
     _height = height,
     _scale = scale,
     _color = color,
     _colorBlendMode = colorBlendMode,
     _fit = fit,
     _alignment = alignment,
     _repeat = repeat,
     _centerSlice = centerSlice,
     _matchTextDirection = matchTextDirection,
     _invertColors = invertColors,
     _textDirection = textDirection,
     _filterQuality = filterQuality {
  _updateColorFilter();
}