update method

  1. @override
S update(
  1. Updater<S> updater
)
override

Updates the current state.

Implementation

@override
S update(Updater<S> updater) {
  _state = updater(_state);
  _subject.next(_state);
  return _state;
}