cancel method

void cancel(
  1. String key
)

清除该 key 的全部限制状态(待执行防抖 + 防连点冷却),立即可再触发。 对不存在的 key 无害。

Implementation

void cancel(String key) {
  _throttleTimers.remove(key)?.cancel();
  _debounceTimers.remove(key)?.cancel();
}