close method

  1. @mustCallSuper
Future<void> close()

Closes the event stream and requests to close connected IsolateBlocBase.

Implementation

@mustCallSuper
Future<void> close() async {
  final id = isolateBlocId;
  if (id != null) {
    _onBlocClose(id);
  }
  await _eventController.close();
  await _stateController.close();
  await _eventReceiverSubscription.cancel();
}