LayerWidget constructor

const LayerWidget({
  1. Key? key,
  2. dynamic onScaleRotateDown(
    1. PointerDownEvent,
    2. Size
    )?,
  3. dynamic onScaleRotateUp(
    1. PointerUpEvent
    )?,
  4. required double editorCenterX,
  5. required double editorCenterY,
  6. required ProImageEditorConfigs configs,
  7. required Layer layerData,
  8. dynamic onContextMenuToggled(
    1. bool isOpen
    )?,
  9. dynamic onTapDown()?,
  10. dynamic onTapUp()?,
  11. dynamic onTap(
    1. Layer
    )?,
  12. dynamic onEditTap()?,
  13. dynamic onRemoveTap()?,
  14. bool highPerformanceMode = false,
  15. bool enableHitDetection = false,
  16. bool selected = false,
  17. bool isInteractive = false,
  18. 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(),
});