disposeInstance method

  1. @mustCallSuper
void disposeInstance()
inherited

Base method for instance dispose

Implementation

@mustCallSuper
void disposeInstance() {
  disposeEventBusSubscription();

  _parts.forEach((key, partsList) {
    for (final value in partsList) {
      value?.dispose();
    }
  });

  isPaused = true;

  allPartsReady.dispose();

  for (final value in disposeOperations) {
    value();
  }

  isDisposed = true;
}