updateValue method

void updateValue(
  1. T fn(
    1. T val
    )
)

Updates the value using a transformation function.

Implementation

void updateValue(T Function(T val) fn) {
  setValueInternal(fn(_value));
}