initializedSuccessfully method

  1. @protected
  2. @visibleForTesting
void initializedSuccessfully()

Marks that the object has been initialized successfully.

Throws:

Implementation

@protected
@visibleForTesting
void initializedSuccessfully() {
  if (isInitialized) {
    throw EnsureInitializedException(alreadyInitializedMessage);
  }

  _completer.complete();
  _whenInitializedStreamController.add(null);
}