ExtendedRenderImage constructor

ExtendedRenderImage({
  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.low,
  18. Rect? sourceRect,
  19. AfterPaintImage? afterPaintImage,
  20. BeforePaintImage? beforePaintImage,
  21. GestureDetails? gestureDetails,
  22. EditActionDetails? editActionDetails,
  23. EdgeInsets layoutInsets = EdgeInsets.zero,
})

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

ExtendedRenderImage({
  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.low,
  Rect? sourceRect,
  AfterPaintImage? afterPaintImage,
  BeforePaintImage? beforePaintImage,
  GestureDetails? gestureDetails,
  EditActionDetails? editActionDetails,
  EdgeInsets layoutInsets = EdgeInsets.zero,
})  : _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,
      _sourceRect = sourceRect,
      _beforePaintImage = beforePaintImage,
      _afterPaintImage = afterPaintImage,
      _gestureDetails = gestureDetails,
      _editActionDetails = editActionDetails,
      _layoutInsets = layoutInsets {
  _updateColorFilter();
}