isWithinTolerance method

bool isWithinTolerance (
  1. PointerEvent event,
  2. double tolerance
)

is two point within tolerance 双击 是否两个点在一个范围内

Implementation

bool isWithinTolerance(PointerEvent event, double tolerance) {
  final Offset offset = event.position - _initialFocalPoint;
  return offset.distance <= tolerance;
}