LayerWidget constructor

const LayerWidget({
  1. Key? key,
  2. required Size editorBodySize,
  3. required ProImageEditorConfigs configs,
  4. required Layer layer,
  5. MainEditorLayersService? layersService,
  6. LayerInteractionManager? layerInteractionManager,
  7. dynamic onContextMenuToggled(
    1. bool isOpen
    )?,
  8. dynamic onDuplicate()?,
  9. bool isInteractive = false,
  10. bool enableMouseCursor = true,
  11. ProImageEditorCallbacks callbacks = const ProImageEditorCallbacks(),
})

Creates a LayerWidget with the specified properties.

Implementation

const LayerWidget({
  super.key,
  required this.editorBodySize,
  required this.configs,
  required this.layer,
  this.layersService,
  this.layerInteractionManager,
  this.onContextMenuToggled,
  this.onDuplicate,
  this.isInteractive = false,
  this.enableMouseCursor = true,
  this.callbacks = const ProImageEditorCallbacks(),
});