ZoomPanBehavior constructor

ZoomPanBehavior({
  1. bool enablePinching = false,
  2. bool enableDoubleTapZooming = false,
  3. bool enablePanning = false,
  4. bool enableSelectionZooming = false,
  5. bool enableMouseWheelZooming = false,
  6. bool enableDirectionalZooming = false,
  7. ZoomMode zoomMode = ZoomMode.xy,
  8. double maximumZoomLevel = 0.01,
  9. double selectionRectBorderWidth = 1,
  10. Color? selectionRectBorderColor,
  11. Color? selectionRectColor,
})

Creating an argument constructor of ZoomPanBehavior class.

Implementation

ZoomPanBehavior({
  this.enablePinching = false,
  this.enableDoubleTapZooming = false,
  this.enablePanning = false,
  this.enableSelectionZooming = false,
  this.enableMouseWheelZooming = false,
  this.enableDirectionalZooming = false,
  this.zoomMode = ZoomMode.xy,
  this.maximumZoomLevel = 0.01,
  this.selectionRectBorderWidth = 1,
  this.selectionRectBorderColor,
  this.selectionRectColor,
});