swipeProgress property

Offset? swipeProgress

The current position of the card, as a result of a user drag and/or a swipe animation.

This is 0 when there is no active swipe. It increments up to 1 during an active swipe and then resets to 0 when the swipe is complete.

Implementation

Offset? get swipeProgress {
  return position?._offsetRelativeToSize;
}