onChanged property

ValueChanged<TValue> onChanged

Function that should be called with every change to update the state accordingly.

Implementation

ValueChanged<TValue> get onChanged {
  return _debouncer == null
      ? _onValueChanged
      : (v) => _debouncer?.run(() => _onValueChanged(v));
}