ScaleGesture class
Constructors
- ScaleGesture({GestureBounds bounds = const GestureBounds(), GestureConstraints? constraints, StageBuilder? builder, OnRelease? onRelease, double? scaleVelocityCancel, ShrinkBounds? shrink, ExpandBounds? expand, ScaleHybrid? hybridFromStage})
-
const
Properties
- bounds → GestureBounds
-
Directional bounds active during this gesture (drag) or directional
overflow during scale (rect edges past container edges).
finalinherited
- builder → StageBuilder?
-
finalinherited
- constraints → GestureConstraints?
-
finalinherited
- expand → ExpandBounds?
-
Expand-axis bound config (with optional maxScale threshold).
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- hybridFromStage → ScaleHybrid?
-
Per-gesture override for how Stage receives new pointers while this
scale is active. Cascades up to Origin.scaleHybridFromStage →
Stage.scaleHybridFromStage → ScaleHybrid.lock when null.
final
- onRelease → OnRelease?
-
Called when the gesture ends with a ReleaseContext — raw end-state
inputs. Consumer calls
Stage.of(context).release(Release.toDisplay(data))for the default plan, or builds a custom plan and calls.run(...)/.backToOrigin(data)/ etc.finalinherited - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scaleVelocityCancel → double?
-
Per-gesture strength of scale-velocity-based translation cancellation
in
[0, 1]. Cascade fallback when null: DisplayConfig.scaleVelocityCancel → Origin.scaleVelocityCancel → Stage.scaleVelocityCancel → 0.5. Most relevant on ScaleGesture; a no-op on DragGesture since scaleVelocity is ~0 there.finalinherited - shrink → ShrinkBounds?
-
Shrink-axis bound config (with optional minScale threshold).
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited