onStateChanged method

Stream<T> onStateChanged({
  1. bool withLatest = false,
})

Emits an event each time the state is changed in mutateState

If withLatest is true, the stream will emit the latest immidiately event to every subscriber that listens to it.

Implementation

Stream<T> onStateChanged({
  bool withLatest = false,
}) =>
    _decideOnStateControllerStream(withLatest);