TransformGesture constructor
const
TransformGesture({
- bool enabled = true,
- TransformTarget target = TransformTarget.node,
- TransformPan pan = TransformPan.always,
- bool zoom = true,
- bool rotate = false,
- double minScale = 1,
- double maxScale = 4,
- GestureBounds bounds = GestureBounds.cover,
- double doubleTapScale = 2.5,
- WheelZoom wheel = WheelZoom.ctrlZoom,
- GesturePhysics? physics,
- String xVariable = '',
- String yVariable = '',
- String scaleVariable = '',
- String rotationVariable = '',
- String scaleXVariable = '',
- String scaleYVariable = '',
- TransformHandles? handles,
- double? x,
- double? y,
- double? scale,
- double? rotation,
- double? scaleX,
- double? scaleY,
Implementation
const TransformGesture({
this.enabled = true,
this.target = TransformTarget.node,
this.pan = TransformPan.always,
this.zoom = true,
this.rotate = false,
this.minScale = 1,
this.maxScale = 4,
this.bounds = GestureBounds.cover,
this.doubleTapScale = 2.5,
this.wheel = WheelZoom.ctrlZoom,
this.physics,
this.xVariable = '',
this.yVariable = '',
this.scaleVariable = '',
this.rotationVariable = '',
this.scaleXVariable = '',
this.scaleYVariable = '',
this.handles,
this.x,
this.y,
this.scale,
this.rotation,
this.scaleX,
this.scaleY,
});