ExtendedRenderImage constructor

ExtendedRenderImage(
  1. {Image? image,
  2. String? debugImageLabel,
  3. double? width,
  4. double? height,
  5. double scale = 1.0,
  6. Color? color,
  7. BlendMode? colorBlendMode,
  8. BoxFit? fit,
  9. AlignmentGeometry alignment = Alignment.center,
  10. ImageRepeat repeat = ImageRepeat.noRepeat,
  11. Rect? centerSlice,
  12. bool matchTextDirection = false,
  13. TextDirection? textDirection,
  14. bool invertColors = false,
  15. FilterQuality filterQuality = FilterQuality.low,
  16. Rect? sourceRect,
  17. AfterPaintImage? afterPaintImage,
  18. BeforePaintImage? beforePaintImage,
  19. GestureDetails? gestureDetails,
  20. EditActionDetails? editActionDetails,
  21. bool isAntiAlias = false}
)

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,
  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,
  Rect? sourceRect,
  AfterPaintImage? afterPaintImage,
  BeforePaintImage? beforePaintImage,
  GestureDetails? gestureDetails,
  EditActionDetails? editActionDetails,
  bool isAntiAlias = false,
})  : _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,
      _sourceRect = sourceRect,
      _beforePaintImage = beforePaintImage,
      _afterPaintImage = afterPaintImage,
      _gestureDetails = gestureDetails,
      _editActionDetails = editActionDetails,
      _isAntiAlias = isAntiAlias {
  _updateColorFilter();
}