dispose method

dynamic dispose()

Disposes of the debounce timer, preventing any further calls.

Call this method when you no longer need to debounce function calls to clean up resources.

Example Usage:

// Dispose of the debounce timer when no longer needed.
debounce.dispose();

Implementation

dispose() {
  _timer?.cancel();
}