UDocShapeLayer constructor
const
UDocShapeLayer({
- required List<
UDocShape> shapes, - required UDocDrawController tools,
- required void onAdd(
- UDocShape shape
- required void onUpdate(
- UDocShape shape
- required void onRemove(
- String id
- UDocShape prepare(
- UDocShape shape
- UDocShapeSpace space = UDocShapeSpace.box,
- Offset origin = Offset.zero,
- bool enabled = true,
- double zoom = 1,
- 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,
});