debounce method

void debounce()

Implementation

void debounce() {
  final key = _generateKey();
  _funcDebounce[key]?.cancel();
  _funcDebounce[key] = Timer(Duration(milliseconds: timeout), () {
    _funcDebounce.remove(key)?.cancel();
    target?.call();
  });
}