MyEventDebounce_c<T>.fromMyStream constructor

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

Implementation

MyEventDebounce_c.fromMyStream({
  required MyStream_c<T> stream,
  required this.time,
  required this.onListen,
  this.fastFirstRun = false,
}) {
  stream.addListener((value, _) {
    notify(value);
  });
}