canSwipeHorizontally property

bool get canSwipeHorizontally

Whether horizontal swiping is allowed in the current state.

Implementation

bool get canSwipeHorizontally =>
    verticalProgress < 0.2 && !isDragging && phase == CardPhase.collapsedCard;