MyEventDebounce_c<T>.fromMyStream constructor
MyEventDebounce_c<T>.fromMyStream ({
- required MyStream_c<
T> stream, - required Duration time,
- required void onListen(
- T val
- 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);
});
}