debugThrottleClock top-level property

  1. @visibleForTesting
Duration Function()? debugThrottleClock
getter/setter pair

Test hook: injectable time source for the pointer-throttle gate. When null (production), real elapsed time from an internal Stopwatch is used. Tests provide a controlled Duration so the gate is DETERMINISTIC: the real clock made the throttle untestable — coverage instrumentation and suite load stretch the delay between two synthetic pointer events past the 16 ms window, flipping the observed behavior between isolated and full-suite runs.

Implementation

@visibleForTesting
Duration Function()? debugThrottleClock;