MyEventDebounce_c<T> constructor

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

防抖

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

Implementation

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