stretch property
The factor to multiply the drag offset by to determine the stretch amount.
Controls how much the button stretches in response to drag gestures:
- 0.0: No stretch
- 1.0: Stretch matches drag offset exactly (usually too much)
- 0.5 (default): Balanced, natural stretch effect
Higher values create more dramatic squash and stretch animations.
Defaults to 0.5.
Implementation
final double stretch;