CanvasObject constructor

const CanvasObject({
  1. String? id,
  2. String? name,
  3. CanvasPaint paint = const CanvasPaint(),
  4. double rotation = 0,
  5. bool locked = false,
  6. bool hidden = false,
})

Creates a retained canvas object.

Implementation

const CanvasObject({
  this.id,
  this.name,
  this.paint = const CanvasPaint(),
  this.rotation = 0,
  this.locked = false,
  this.hidden = false,
});