modify method

  1. @action
FutureOr<T> modify(
  1. Mutator<T> mutator
)

Implementation

@action
FutureOr<T> modify(Mutator<T> mutator) {
  final v = mutator(internalTracked.tracked);
  this.internalTracked = this.internalTracked.updated(v, force: true);
  return v;
}