Use this function to determine if the view should flick or not.
bool? shouldFlick(dynamic dragEndDetails, double treshold) { return dragEndDetails.velocity.pixelsPerSecond.distance > treshold; }