Creating an argument constructor of ZoomPanArgs class.
ZoomPanArgs([this.axis, this.previousZoomPosition, this.previousZoomFactor]);