UDocShapeLayer constructor

const UDocShapeLayer({
  1. required List<UDocShape> shapes,
  2. required UDocDrawController tools,
  3. required void onAdd(
    1. UDocShape shape
    ),
  4. required void onUpdate(
    1. UDocShape shape
    ),
  5. required void onRemove(
    1. String id
    ),
  6. UDocShape prepare(
    1. UDocShape shape
    )?,
  7. UDocShapeSpace space = UDocShapeSpace.box,
  8. Offset origin = Offset.zero,
  9. bool enabled = true,
  10. double zoom = 1,
  11. Key? key,
})

Implementation

const UDocShapeLayer({
  required this.shapes,
  required this.tools,
  required this.onAdd,
  required this.onUpdate,
  required this.onRemove,
  this.prepare,
  this.space = UDocShapeSpace.box,
  this.origin = Offset.zero,
  this.enabled = true,
  this.zoom = 1,
  super.key,
});