debounce<T> method
Implementation
void debounce<T>(Function(T arg) fn, Duration duration, T dep) {
final timer = call((_) {
return Timer(duration, () {
fn(dep);
});
}, dep);
dispose(_cancelTimer, timer);
}
void debounce<T>(Function(T arg) fn, Duration duration, T dep) {
final timer = call((_) {
return Timer(duration, () {
fn(dep);
});
}, dep);
dispose(_cancelTimer, timer);
}