DiagramWidgetScene constructor

const DiagramWidgetScene({
  1. required DiagramScenePainter renderer,
  2. required ShapeWidgetRegistry registry,
  3. required DiagramController store,
  4. required Listenable repaint,
  5. required bool readOnly,
  6. required ValueChanged<int> onPointerOwned,
  7. Listenable? structure,
  8. required ValueChanged<int> onPointerReleased,
  9. required ValueChanged<bool> onFocusChanged,
  10. bool blocksWidgetPointer(
    1. DiagramPoint world
    )?,
  11. bool onBackgroundStart(
    1. String ownerId,
    2. int pointer,
    3. Offset global
    )?,
  12. void onBackgroundUpdate(
    1. int pointer,
    2. Offset global
    )?,
  13. void onBackgroundEnd(
    1. int pointer,
    2. Offset global
    )?,
  14. ValueChanged<int>? onBackgroundCancel,
  15. void onBackgroundTap(
    1. String ownerId,
    2. int pointer,
    3. Offset global
    )?,
  16. VoidCallback? onReturnToCanvas,
  17. Key? key,
})

Implementation

const DiagramWidgetScene({
  required this.renderer,
  required this.registry,
  required this.store,
  required this.repaint,
  required this.readOnly,
  required this.onPointerOwned,
  this.structure,
  required this.onPointerReleased,
  required this.onFocusChanged,
  this.blocksWidgetPointer,
  this.onBackgroundStart,
  this.onBackgroundUpdate,
  this.onBackgroundEnd,
  this.onBackgroundCancel,
  this.onBackgroundTap,
  this.onReturnToCanvas,
  super.key,
});