EventxxDebounce_c<T> constructor

EventxxDebounce_c<T>({
  1. required Duration time,
  2. required void onListen(
    1. T val
    ),
  3. bool fastFirstRun = false,
})

防抖

  • 限制在 time 时间内没有新收到新数据后触发执行一次 onListen

Implementation

EventxxDebounce_c({
  required this.time,
  required this.onListen,
  this.fastFirstRun = false,
});