isFlingGesture method
Determines if a gesture is a fling or not based on velocity.
A fling calls its gesture end callback with a velocity, allowing the provider of the callback to respond by carrying the gesture forward with inertia, for example.
Implementation
@override
bool isFlingGesture(VelocityEstimate estimate, PointerDeviceKind kind) {
final minVelocity = minFlingVelocity ?? kMinFlingVelocity;
final minDistance = minFlingDistance ?? computeHitSlop(kind);
return estimate.pixelsPerSecond.distanceSquared > minVelocity * minVelocity &&
estimate.offset.distanceSquared > minDistance * minDistance;
}