LayerWidget constructor
const
LayerWidget({
- Key? key,
- required Size editorBodySize,
- required ProImageEditorConfigs configs,
- required Layer layer,
- MainEditorLayersService? layersService,
- LayerInteractionManager? layerInteractionManager,
- dynamic onContextMenuToggled(
- bool isOpen
- dynamic onDuplicate()?,
- bool isInteractive = false,
- bool enableMouseCursor = true,
- 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(),
});