update<T, V> method

void update<T, V>(
  1. WritablePodBase<T, V> pod,
  2. V cb(
    1. T value
    )
)

Update the pod value.

Implementation

void update<T, V>(WritablePodBase<T, V> pod, V Function(T value) cb) {
  final container = PodScope.of(this, listen: false);
  container.set<T, V>(pod, cb(container.get(pod)));
}