epic property

Epic<State> epic

Gets or replaces the epic currently used by the middleware.

Replacing epics is considered an advanced API. You might need this if your app grows large and want to instantiate Epics on the fly, rather than as a whole up front.

Implementation

Epic<State> get epic => _epic;
void epic=(Epic<State> newEpic)

Implementation

set epic(Epic<State> newEpic) {
  _epic = newEpic;

  _epics.add(newEpic);
}