RxBloc constructor

const RxBloc({
  1. String eventsClassName = 'Events',
  2. String statesClassName = 'States',
})

By convention the Events class should be composed of ${blocName}Events. For instance of the BloC class name is CounterBloc the events abstract class should be named abstract class CounterEvents. In case you want to name it differently just provide the expected name in eventsClassName.

By convention the States class should be composed of ${blocName}States. For instance of the BloC class name is CounterBloc the events abstract class should be named CounterStates. In case you want to name it differently just provide the expected name in statesClassName.

Implementation

const RxBloc({
  this.eventsClassName = 'Events',
  this.statesClassName = 'States',
});