updateValue method

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

Updates the value using a transformation function.

Implementation

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