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 onTapDown()?,
  9. dynamic onTapUp()?,
  10. dynamic onTap(
    1. Layer
    )?,
  11. dynamic onEditTap()?,
  12. dynamic onRemoveTap()?,
  13. bool highPerformanceMode = false,
  14. bool enableHitDetection = false,
  15. bool selected = false,
  16. bool isInteractive = false,
  17. 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.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(),
});