EventxxDebounce_c<T>.fromMyStream constructor
EventxxDebounce_c<T>.fromMyStream ({
- required Streamxx_c<
T> stream, - required Duration time,
- required void onListen(
- T val
- bool fastFirstRun = false,
Implementation
EventxxDebounce_c.fromMyStream({
required Streamxx_c<T> stream,
required this.time,
required this.onListen,
this.fastFirstRun = false,
}) {
stream.addListener((value, _) {
notify(value);
});
}