setWithUpdater method

void setWithUpdater(
  1. T computeNewValue(
    1. 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));