ZoomPanBehavior constructor

ZoomPanBehavior({
  1. bool enablePinching = false,
  2. bool enableDoubleTapZooming = false,
  3. bool enablePanning = false,
  4. bool enableSelectionZooming = false,
  5. bool enableMouseWheelZooming = false,
  6. ZoomMode zoomMode = ZoomMode.xy,
  7. double maximumZoomLevel = 0.01,
  8. double selectionRectBorderWidth = 1,
  9. Color? selectionRectBorderColor,
  10. 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.zoomMode = ZoomMode.xy,
  this.maximumZoomLevel = 0.01,
  this.selectionRectBorderWidth = 1,
  this.selectionRectBorderColor,
  this.selectionRectColor,
});