dispatchState property

  1. @protected
dynamic Function(S) get dispatchState

Notifies the BloC of a new state which triggers onData.

Implementation

@protected
Function(S) get dispatchState {
  if (!stateController.isClosed) {
    return stateController.sink.add;
  }

  return _dispatchState;
}