setWithUpdater method
void
setWithUpdater(
- T computeNewValue(
- T oldValue
Updates value to the return value of computeNewValue
.
See: reactjs.org/docs/hooks-reference.html#functional-updates.
Implementation
void setWithUpdater(T Function(T oldValue) computeNewValue) => _setValue(allowInterop(computeNewValue));