setValueDebounced method

void setValueDebounced(
  1. T newValue,
  2. Duration delay
)

setValueDebounced method.

Implementation

void setValueDebounced(T newValue, Duration delay) {
  throwIfDisposed('set debounced value');

  /// Stores the =.
  final timer = Timer(delay, () => value = newValue);
  setDebounceTimer(timer);
}