CanvasImageObject constructor

const CanvasImageObject({
  1. String? id,
  2. String? name,
  3. CanvasPaint paint = const CanvasPaint(),
  4. double rotation = 0,
  5. bool locked = false,
  6. bool hidden = false,
  7. required String src,
  8. required double x,
  9. required double y,
  10. required double width,
  11. required double height,
  12. String? crossOrigin,
})

Creates an image object.

Implementation

const CanvasImageObject({
  super.id,
  super.name,
  super.paint,
  super.rotation,
  super.locked,
  super.hidden,
  required this.src,
  required this.x,
  required this.y,
  required this.width,
  required this.height,
  this.crossOrigin,
});