LayerWidget constructor
const
LayerWidget({
- Key? key,
- dynamic onScaleRotateDown()?,
- dynamic onScaleRotateUp()?,
- required double editorCenterX,
- required double editorCenterY,
- required ProImageEditorConfigs configs,
- required Layer layerData,
- dynamic onContextMenuToggled(
- bool isOpen
- dynamic onTapDown()?,
- dynamic onTapUp()?,
- dynamic onTap()?,
- dynamic onEditTap()?,
- dynamic onRemoveTap()?,
- bool highPerformanceMode = false,
- bool enableHitDetection = false,
- bool selected = false,
- bool isInteractive = false,
- ProImageEditorCallbacks callbacks = const ProImageEditorCallbacks(),
Creates a LayerWidget with the specified properties.
Implementation
const LayerWidget({
super.key,
this.onScaleRotateDown,
this.onScaleRotateUp,
required this.editorCenterX,
required this.editorCenterY,
required this.configs,
required this.layerData,
this.onContextMenuToggled,
this.onTapDown,
this.onTapUp,
this.onTap,
this.onEditTap,
this.onRemoveTap,
this.highPerformanceMode = false,
this.enableHitDetection = false,
this.selected = false,
this.isInteractive = false,
this.callbacks = const ProImageEditorCallbacks(),
});