shouldFlick method

bool? shouldFlick(
  1. dynamic dragEndDetails,
  2. double treshold
)

Use this function to determine if the view should flick or not.

Implementation

bool? shouldFlick(dynamic dragEndDetails, double treshold) {
  return dragEndDetails.velocity.pixelsPerSecond.distance > treshold;
}