Emit a state with error
@protected void updateStateWithError(Object error) { _lastEmittedError = error; _controller.addError(StateSnapshot<T>(null, error)); }