onStripDrag method

dynamic onStripDrag (
  1. DragEndDetails details
)

Implementation

onStripDrag(DragEndDetails details) {
  if (details.primaryVelocity == 0 || !widget.addSwipeGesture) return;
  if (details.primaryVelocity < 0) {
    if (!isOnEndingWeek) {
      onNextRow();
    }
  } else {
    if (!isOnStartingWeek) {
      onPrevRow();
    }
  }
}