onBlocCreated method

  1. @protected
void onBlocCreated()

Connects this wrapper to the IsolateBlocBase and sends all unsent events.

Implementation

// TODO(Maksim): Maybe move unsent events synchronization to the [IsolateManager]
@protected
void onBlocCreated() {
  _blocCreated = true;
  while (_unsentEvents.isNotEmpty) {
    _eventReceiver(_unsentEvents.removeFirst());
  }
}