addEvent property

  1. @override
dynamic Function(BlocEvent) get addEvent
override

Notifies the BloC of a new event which triggers mapEventToState. If dispose has already been called, any calls to dispatchEvent will be ignored and will not result in any state changes.

For example:

bloc.dispatchEvent(blocEvent);

Implementation

@override
Function(BlocEvent) get addEvent {
  assert(isBlocHydrated);

  return super.addEvent;
}