ZetaDebounce constructor

ZetaDebounce(
  1. void callback(), {
  2. Duration duration = _debounceDuration,
})

Constructs and starts the debouncer.

Implementation

factory ZetaDebounce(void Function() callback, {Duration duration = _debounceDuration}) {
  return ZetaDebounce._(callback, duration)..debounce();
}