TemplateCanvas constructor

const TemplateCanvas({
  1. Key? key,
  2. TemplateModel? template,
  3. LayerModel? selectedLayer,
  4. dynamic onLayerSelect(
    1. LayerModel
    )?,
  5. dynamic onLayerDrag(
    1. LayerModel,
    2. Offset
    )?,
  6. dynamic onLayerResize(
    1. LayerModel,
    2. Size
    )?,
  7. bool isInteractive = true,
})

Implementation

const TemplateCanvas({
  super.key,
  this.template,
  this.selectedLayer,
  this.onLayerSelect,
  this.onLayerDrag,
  this.onLayerResize,
  this.isInteractive = true,
});